Skip to contents

Recode & Collapse

Transform numeric survey codes into standardized values.

recode_binary()
Collapse categories into 0/1
recode_sentinel()
Replace sentinel values with NA
collapse_likert()
Collapse Likert scales

Label

Convert numeric codes to human-readable strings.

label_binary()
Label binary columns with descriptive strings
label_likert()
Label Likert-scale columns with descriptive strings

Combine & Count

Aggregate multiple binary indicators into summary columns.

combine_binary()
Combine binary indicators with OR logic
count_binary()
Count how many binary indicators are active

Impute & Propagate

Fill or override values based on flag or parent columns.

impute_from_flag()
Replace NA with a value when a flag column indicates the skip is valid
propagate_parent()
Push parent variable's special values to child columns

Filter

Conditionally set variables to NA for ineligible respondents.

apply_filter()
Conditionally set variables to NA when a condition is not met
replace_over_one_with_na()
Replace values greater than 1 with NA

Summarize

Weighted summary statistics over survey data.

calc_summarize()
Calculate weighted summary statistics
summarize_by_groups()
Run calc_summarize() across many variables and bind the results

Survey statistics

Weighted inference (CIs, chi-square, t-tests, ANOVA) and bulk runner.

survey_ci()
Weighted confidence intervals for survey variables
survey_chisq()
Weighted chi-square tests for variable pairs
survey_ttest()
Weighted t-tests across multiple outcomes
survey_anova()
Weighted ANOVA across multiple outcomes
run_survey_stats()
Run a bulk batch of weighted survey statistics