generate_fake_grouped_data: A fake DGP with time varying categorical covariate for...

Description Usage Arguments Value Examples

View source: R/post_stratified_ITS.R

Description

This code makes synthetic grouped data that can be used to illustrate benefits of post stratification.

Usage

1
2
3
4
5
6
generate_fake_grouped_data(
  t_min,
  t0,
  t_max,
  method = c("complex", "linear", "jersey")
)

Arguments

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).

Value

Dataframe of fake data, with one row per group per time period.

Examples

1
2
3
fdat = generate_fake_grouped_data(t_min=-5,t_max=10, t0 = 0)
table( fdat$month )
table( fdat$type )

simITS documentation built on July 2, 2020, 4:10 a.m.