Placebo DiD on sub-groups expected to be unaffected
Usage
morie_did_placebo_test_group(
data,
outcome,
treatment,
post,
group_col,
unaffected_groups,
covariates = NULL,
cluster = NULL,
alpha = 0.05
)Arguments
- data
Data frame.
- outcome, treatment, post
Column names.
- group_col
Column defining sub-groups.
- unaffected_groups
Vector of group values where no effect is expected.
- covariates
Optional character vector of covariate column names.
- cluster
Optional cluster ID column for CR1 standard errors.
- alpha
Significance level for confidence intervals (default 0.05).