Skip to contents

All functions

MLM_estimators()
Cluster RCT with multi-level modeling
aggregate_data()
Aggregate data to the cluster level.
aggregation_estimators()
Estimate ATEs for cluster RCT using data aggregation.
as.data.frame(<clusterRCTstats>)
Cast cluster RCT info result to data.frame
compare_methods()
Compare different estimators for a (possibly blocked) cluster randomized trial.
count_covariates()
Calculate number of level 1 and level 2 variables
describe_clusterRCT()
Describe a cluster RCT dataset
design_based_estimators()
Estimate ATE via design-based approach
design_based_estimators_individual()
Estimate ATE via design-based approach
fakeBrokeCRT
Fake Broken Cluster Randomized Trial data
fakeCRT
Fake Cluster Randomized Trial data
fakeCRT2
Fake Cluster Randomized Trial data (set 2)
gee_estimators()
Estimate ATEs for a cluster RCT using a GEE approach
generate_all_interacted_estimates()
Average block-level estimates to get overall ATE
get_estimand()
Get the estimand for a given method.
get_structure()
Given data, return a data frame with the structure of the data
identify_singleton_blocks()
Identify all tx and all co blocks
interacted_linear_model_estimators()
Estimate ATEs for a cluster RCT using linear model
is.clusterRCTstats()
Is object a clusterRCTstats object?
is_nested()
Check if one grouping variable nested in another
linear_model_estimators()
Estimate ATEs for a cluster RCT using linear model
make_block_table()
Make table of statistics by block
make_regression_formula()
Make a canonical regression formula, possibly with control variables.
method_characteristics()
Get table of characteristics of all the methods implemented in this package.
middleton_aronow_estimator()
Estimate ATE via Middleton & Aronow unbiased approach
patch_data_set()
Fill in missing values and convert data to canonical form
patch_singleton_blocks()
Drop or combine all-tx or all-co blocks
print(<clusterRCTstats>)
Pretty print result from describe cluster RCT call
rerandomize()
Return new treatment assignment based on passed one.
run_rerandomize_simulation()
Run a finite sample simulation by permuting treatment assignment labels within each block.
summarize_simulation_results()
Summarize set of compare_methods results across estimators