DiD_aggreg: Count the treated/control

Description Usage Arguments Examples

View source: R/DiffDiff_byY.R

Description

Count the treated/control

Aggreg results

Usage

1
2
3
DiD_count(x)

DiD_aggreg(x, DiD_keep = c(1, 4), by_DiD = FALSE, ...)

Arguments

x

output from DD

DiD_keep

which to look at

by_DiD

DiD specific?

...

grouping vars... time

Examples

1
2
3
4
5
data <- sim_dat(N=100)
DD_out <- DD(data=data)
DiD_aggreg(x=DD_out, by_DiD = FALSE)
DiD_aggreg(x=DD_out, by_DiD = TRUE)
DiD_count(x=DD_out)

MatthieuStigler/multiDiff documentation built on Aug. 10, 2021, 9:42 p.m.