calculate_estimates
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 )
qoi.in
: String specifying qoidata.in
: data.frame object with the datalead
: integer specifying lead windownumber.iterations
: integer. specifies number of bootstrap iterationsatt.treated.unit.ids
: Integer vector specifying the treated units for the att or artatc.treated.unit.ids
: Integer vector specifying the "treated" units under the atc definitionoutcome.variable
: string specifying the name of the outcome variableunit.id.variable
: string specifying the name of the unit id variableconfidence.level
: double. specifies confidence level for confidence intervalatt.sets
: matched.set object specifying the att or art setsatc.sets
: matched.set object specifying the atc setslag
: integer vector specifying size of the lag.se.method
: string specifying which method should be used for standard error calculationpooled
: bool. specifies whether or not estimates should be calculated for each lead period, or pooled across all lead periodsparallel
: bool. Specifies whether or not parallelization should be usednum.cores
: Integer. specifies how many cores to use for parallelizationReturns PanelEstimate object.
Useful links