generate_fake_grouped_data {simITS} | R Documentation |
This code makes synthetic grouped data that can be used to illustrate benefits of post stratification.
generate_fake_grouped_data(
t_min,
t0,
t_max,
method = c("complex", "linear", "jersey")
)
t_min |
Index of first month |
t0 |
last pre-policy timepoint |
t_max |
Index of last month |
method |
Type of post-stratification structure to generate (three designs of 'complex', 'linear' and 'jersey' were originally concieved of when designing simulation studies with different types of structure). |
Dataframe of fake data, with one row per group per time period.
fdat = generate_fake_grouped_data(t_min=-5,t_max=10, t0 = 0)
table( fdat$month )
table( fdat$type )