boot_cea: Bootstrap resampling of CEA estimates

Description Usage Arguments

View source: R/boot.R

Description

Generate R bootstrap replicates of mean incremental QALYs and Costs from a fitted CEA regression model, using the boot package.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
boot_cea(
  x,
  R,
  estimand = "ATE",
  sim = "parametric",
  weights = NULL,
  simple = FALSE,
  parallel = c("no", "multicore", "snow"),
  ncpus = getOption("cea.boot.ncpus", 1L),
  cl = NULL
)

Arguments

x

cea_estimate object. The fitted CEA regression model.

R

The number of bootstrap replicates.

estimand

String scalar. Whether to calculate the average treatment effect (ATE), average treatment effect on the treated (ATT), or average treatment effect on the controls (ATC). Only used for non-linear models.

sim

A character vector indicating the type of simulation required. Possible values are "ordinary" (the default), "parametric", "balanced", or "permutation".

weights, simple, parallel, ncpus, cl

Passed to \link[boot]{boot}. For parallel and ncpus, default values are taken from getOption(cea.boot.parallel) and getOption(cea.boot.ncpus) instead of their boot-package equivalents.


uo-cmor/cea documentation built on Dec. 23, 2021, 2:01 p.m.