mdd_DD_means22: Estimate DiD 2x2 means

View source: R/mdd_DD_means.R

mdd_DD_means22R Documentation

Estimate DiD 2x2 means

Description

Estimate juste the before/after treated/control means, and conduct inference on the various diffs

Usage

mdd_DD_means22(mdd_dat, add_tests = TRUE)

## S3 method for class 'mdd_DD_means22'
print(x, ...)

Arguments

mdd_dat

An object of class mdd_dat created by mdd_data_format

add_tests

compute also tests?

x

output of mdd_DD_means

...

unused

Value

An object of class lm (wrapped into mdd_DD_means22), with the slot mdd_dat_slot which contains the output of the tests under DiD_manu_tests

Examples

dat_sim_mdd <- sim_dat_common(timing_treatment = 6:10,  as_mdd=TRUE)
out <- mdd_DD_means22(mdd_dat=dat_sim_mdd)
out
# extract tests:
attr(out, "mdd_dat_slot")$DiD_manu_tests

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