Learn R Programming

SurveyStat (version 1.0.3)

Survey Data Cleaning, Weighting and Analysis

Description

Provides utilities for cleaning survey data, computing weights, and performing descriptive statistical analysis. Methods follow Lohr (2019, ISBN:978-0367272454) "Sampling: Design and Analysis" and Lumley (2010) .

Copy Link

Version

Install

install.packages('SurveyStat')

Version

1.0.3

License

GPL-3

Maintainer

Muhammad Ali

Last Published

January 22nd, 2026

Functions in SurveyStat (1.0.3)

clean_missing

Clean missing values in specified column
plot_histogram

Create publication-quality histogram
describe_survey

Generate comprehensive survey description
frequency_table

Generate frequency table for categorical variable
weighted_total

Calculate weighted total
remove_duplicates

Remove duplicate rows from survey data
weighted_mean

Calculate weighted mean
rake_weights

Rake survey weights to match population targets
standardize_categories

Standardize categorical values
apply_weights

Apply survey weights to data
cross_tabulation

Generate cross-tabulation table with chi-square test
plot_weighted_bar

Create weighted bar plot for categorical variables
plot_boxplot

Create publication-quality box plot
globalVariables

Declare global variables to suppress NOTES in CRAN checks
example_survey

Example Survey Dataset