Mid-level function that helps with estimation process. Calls lower level helper functions
calculate_estimates(
qoi.in,
data.in,
lead,
number.iterations,
att.treated.unit.ids,
atc.treated.unit.ids,
outcome.variable,
unit.id.variable,
confidence.level,
att.sets,
atc.sets,
placebo.test = FALSE,
lag,
se.method,
pooled = FALSE,
parallel = FALSE,
num.cores = 1
)
Returns PanelEstimate object.
String specifying qoi
data.frame object with the data
integer specifying lead window
integer. specifies number of bootstrap iterations
Integer vector specifying the treated units for the att or art
Integer vector specifying the "treated" units under the atc definition
string specifying the name of the outcome variable
string specifying the name of the unit id variable
double. specifies confidence level for confidence interval
matched.set object specifying the att or art sets
matched.set object specifying the atc sets
integer vector specifying size of the lag.
string specifying which method should be used for standard error calculation
bool. specifies whether or not estimates should be calculated for each lead period, or pooled across all lead periods
bool. Specifies whether or not parallelization should be used
Integer. specifies how many cores to use for parallelization