Skip to contents

Measuring Alignment

Core functions for computing alignment metrics.

measure_alignment()
Measure group alignment in survey data
measure_alignment_waves()
Analyze opinion coalitions across waves.
measure_pairwise_support()
Measure pairwise co-support for top responses.

Visualization

Plot alignment results.

plot_alignment_curve()
Plot cumulative alignment curves by group.
plot_cumulative_majority()
Plot cumulative issue majority vs individual issue majority by group
plot_individual_alignments()
Plot alignment distributions and summary means by group.
plot_group_stat_over_time()
Plot group-level metrics over time.
plot_support()
Plot item support by wave.
plot_coverage()
Plot question coverage by wave.
plot_pairwise_support()
Plot pairwise co-support heatmap.

Data Preparation

Utilities for preparing survey data.

binarize_responses()
Binarize survey responses by cutpoints.

Methods

Methods for survalign result objects.

print(<survalign>)
Print method for survalign objects.
summary(<survalign>)
Summary method for survalign objects.

Datasets

Bundled survey datasets.

ces
CES survey data
gss
GSS survey data

Utilities

Internal helper functions.

dump_labels()
Dump column labels to dataframe (internal)
get_top_vals()
Get top values for columns (as list)
resolve_ques()
Resolve columns corresponding to questions (internal)
weighted_se()
Design-weighted standard error of the mean (internal)