simulate_dgp: Simulates data from DGPs used in the placebo studies in...

View source: R/placebo-simulations.R

simulate_dgpR Documentation

Simulates data from DGPs used in the placebo studies in Sections 3 and 5 of the synthetic difference in differences paper. Described there in Section 3.1.1.

Description

Simulates data from DGPs used in the placebo studies in Sections 3 and 5 of the synthetic difference in differences paper. Described there in Section 3.1.1.

Usage

simulate_dgp(parameters, N1, T1)

Arguments

parameters,

a list of dgp parameters (F,M,Sigma,pi) as output by estimate.dgp

N1,

a cap on the number of treated units,

T1,

the number of treated periods.

Value

a list with 3 elements: the outcome matrix Y, the number of control units N0, and the number of control periods T0. The first N0 rows of Y are for units assigned to control, the remaining rows are for units assigned to treatment.


synth-inference/synthdid documentation built on Jan. 26, 2024, 7:21 a.m.