handle_bootstrap_parallel: handle_bootstrap_parallel

View source: R/standard_errors.R

handle_bootstrap_parallelR Documentation

handle_bootstrap_parallel

Description

Helper function for calculating bootstrapped estimates for the QOI. This version is parallelized.

Usage

handle_bootstrap_parallel(
  qoi.in,
  data.in,
  lead,
  number.iterations,
  att.treated.unit.ids,
  atc.treated.unit.ids,
  outcome.variable,
  unit.id.variable,
  confidence.level,
  lag,
  pooled,
  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.

pooled

logical. Specifies whether or not to calculate point estimates for each specified lead value, or a single pooled estimate.

num.cores

number of cores to be used for parallelization

Value

Returns a matrix of bootstrapped QOI estimate values.


PanelMatch documentation built on June 22, 2024, 10:32 a.m.