bootstrap_ci: Calculate block bootstrap confidence interval

View source: R/inference.R

bootstrap_ciR Documentation

Calculate block bootstrap confidence interval

Description

Calculate block bootstrap confidence interval

Usage

bootstrap_ci(match, dat, treat_variable = "treat",
  outcome_variable = "y_obs", trajectory_id = "personID",
  ci_level = 0.95, reps = 1000, outcome_model = NA)

Arguments

match

GroupMatch output

dat

Dataset GroupMatch was performed on

treat_variable

Name of the treatment variable in the dataset

outcome_variable

Name of the outcome variable in the dataset

trajectory_id

Name of the column that identifies trajectories

ci_level

Confidence level

reps

Number of bootstrap reps

outcome_model

Outcome model, if bias correction is used

Value

Vector with confidence interval endpoints


jgellar/GroupMatch documentation built on Nov. 8, 2022, 10:48 p.m.