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
)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
Seed for reproducibility
Number of IDs
Number of time periods
Initial year
Treatment year