DiD_aggreg: Count the treated/control from 'DD'.

View source: R/DiffDiff_byY.R

DiD_countR Documentation

Count the treated/control from DD.

Description

Count the treated/control from DD.

Aggregates results from DD.

Usage

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

See Also

DD for the DD function.

Examples

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 Oct. 21, 2023, 8:13 a.m.