boots_tm: Bootstrap Uncertainty Estimates for Telescope Matching

View source: R/telescope_match.R

boots_tmR Documentation

Bootstrap Uncertainty Estimates for Telescope Matching

Description

Performs a weighted bootstrap procedure for the output of telescope_match.

Usage

boots_tm(obj, boots = 1000, ci_alpha = 0.05)

Arguments

obj

A tmatch object, computed by telescope_match.

boots

The number of bootstrap replicates. Defaults to 1000.

ci_alpha

alpha value for the bootstrapped confidence intervals. Corresponds to a 100 * (1-alpha) confidence interval.

Value

An data.frame with columns 'ci_low' and 'ci_high' which contain the bootstrapped confidence intervals for the estimated ACDEs in obj$tau.

Examples


data(jobcorps)

## Split male/female
jobcorps_female <- subset(jobcorps, female == 1)

## Telescope matching formula - First stage (X and Z)
tm_form <- exhealth30 ~  schobef + trainyrbef + jobeverbef  |
treat | emplq4 + emplq4full | work2year2q


### Estimate ACDE for women holding employment at 0
tm_out <-  telescope_match(
  tm_form,
  data = jobcorps_female,
  L = 3,
  boot = FALSE,
  verbose = TRUE
)

out.boots <- boots_tm(tm_out)

out.boots


DirectEffects documentation built on Oct. 4, 2024, 5:07 p.m.