- inputdata
A data.table.
- varnames
A list of the form varnames = list(id_name, time_name, outcome_name, cohort_name), where all four arguments of the list must be a character that corresponds to a variable name in inputdata.
- control_group
There are three possibilities: control_group="never-treated" uses the never-treated control group only; control_group="future-treated" uses those units that will receive treatment in the future as the control group; and control_group="all" uses both the never-treated and the future-treated in the control group. Default is control_group="all".
- base_event
This is the base pre-period that is normalized to zero in the DiD estimation. Default is base_event=-1.
- min_event
This is the minimum event time (e) to estimate. Default is NULL, in which case, no minimum is imposed.
- max_event
This is the maximum event time (e) to estimate. Default is NULL, in which case, no maximum is imposed.
- Esets
If a list of sets of event times is provided, it will loop over those sets, computing the average ATT_e across event times e. Default is NULL.
- return_ATTs_only
Return only the ATT estimates and sample sizes. Default is TRUE.
- parallel_cores
Number of cores to use in parallel processing. If greater than 1, it will try to run library(parallel), so the "parallel" package must be installed. Default is 1.