handle_bootstrap_placebo_parallel function

handle_bootstrap_placebo_parallel

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 )

Arguments

  • qoi.in: String specifying qoi
  • data.in: data.frame object with the data
  • number.iterations: integer. Specifies number of bootstrap iterations
  • att.treated.unit.ids: Integer vector specifying the treated units for the att or art
  • atc.treated.unit.ids: Integer vector specifying the "treated" units under the atc definition
  • outcome.variable: string specifying the name of the outcome variable
  • unit.id.variable: string specifying the name of the unit id variable
  • confidence.level: double. specifies confidence level for confidence interval
  • lag: integer vector specifying size of the lag.
  • num.cores: number of cores to be used for parallelization

Returns

Returns a matrix of bootstrapped QOI estimate values.

  • Maintainer: In Song Kim
  • License: GPL (>= 3)
  • Last published: 2025-03-03

Useful links