control_test | R Documentation |
Run falsification test
control_test(control_data, control_variables, outcome_model = NA, outcome_variable, time_variable, trajectory_id, time_points, rand_reps = 100, caliper = 0.2, reps = 1000)
control_data |
Dataset with only control units |
control_variables |
Vector of variables to match on |
outcome_model |
Outcome model, if bias correction is used |
outcome_variable |
Name of the outcome variable in the dataset |
time_variable |
Name of the time variable in the dataset |
trajectory_id |
Name of the column that identifies trajectories |
time_points |
Vector of two time points to run falsification test on |
rand_reps |
Number of reps to randomly divide dataset |
caliper |
Matching caliper |
reps |
Number of permutation test reps |
List with p-value from test and mahalanobis distance of dataset for random split
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.