View source: R/generate_data.R
generate_test_panel | R Documentation |
Function to generate fake dataset to test internal procedures.
generate_test_panel(
seed = 123,
num_ids = 100,
time = 2,
initial.year = 2019,
treatment.year = 2020
)
seed |
Seed for reproducibility |
num_ids |
Number of IDs |
time |
Number of time periods |
initial.year |
Initial year |
treatment.year |
Treatment year |
A data.table with the following columns:
id: ID
state: State variable
year: Time variable
partition: Partition variable
x1: Covariate 1
x2: Covariate 2
treat: Treatment variable
outcome: Outcome variable
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.