add_bootstrap: Bootstrap resampling parameters

Description Usage Arguments Examples

View source: R/pseval-constructors.R

Description

Bootstrap resampling parameters

Usage

1
add_bootstrap(psdesign, bootstrap)

Arguments

psdesign

A psdesign object, it must have risk model and integration model components

bootstrap

A bootstrap object created by ps_bootstrap

Examples

1
2
3
4
5
6
## Not run: 
test <- psdesign(generate_example_data(n = 100), Z = Z, Y = Y.obs, S = S.obs, BIP = BIP)
est1 <- test + integrate_parametric(S.1 ~ BIP) + risk_binary() + ps_estimate(method = "BFGS")
est1 + ps_bootstrap(method = "BFGS", start = est1$estimates$par, n.boots = 50)

## End(Not run)

sachsmc/pseval documentation built on May 29, 2019, 12:55 p.m.