Description Usage Arguments Value Examples
View source: R/post_stratified_ITS.R
This code makes synthetic grouped data that can be used to illustrate benefits of post stratification.
1 2 3 4 5 6 | 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.
1 2 3 | fdat = generate_fake_grouped_data(t_min=-5,t_max=10, t0 = 0)
table( fdat$month )
table( fdat$type )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.