mdd_test_placebo: Run placebo test for DiD

View source: R/test_placebo.R

mdd_test_placeboR Documentation

Run placebo test for DiD

Description

Subset the data to the pre-period, and assign a treatment value of 1 to units eventually treated

Usage

mdd_test_placebo(mdd_dat, T_treated = NULL, weights = NULL, cluster = NULL)

Arguments

mdd_dat

An object of class mdd_dat created by mdd_data_format

T_treated

Number of pre-period to consider as treated

cluster, weights

see mdd_DD_simple

Examples

DID_dat_raw <- sim_dat_common(timing_treatment = 5:10)
DID_dat <- mdd_data_format(DID_dat_raw)
mdd_test_placebo(mdd_dat = DID_dat, T_treated = 1)
mdd_test_placebo(mdd_dat = DID_dat, T_treated = 2)

MatthieuStigler/multiDiff documentation built on Oct. 21, 2023, 8:13 a.m.