handle_bootstrap_placebo_parallel
Helper function for calculating bootstrapped estimates for the placebo test. This version is parallelized.
handle_bootstrap_placebo_parallel( qoi.in, data.in, placebo.lead, number.iterations, att.treated.unit.ids, atc.treated.unit.ids, outcome.variable, unit.id.variable, confidence.level, lag, num.cores = 1 )
qoi.in
: String specifying qoidata.in
: data.frame object with the datanumber.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 intervallag
: integer vector specifying size of the lag.num.cores
: number of cores to be used for parallelizationReturns a matrix of bootstrapped QOI estimate values.
Useful links