Learn R Programming

idem (version 2.2)

imBs: Boostrap analysis

Description

Boostrap analysis

Usage

imBs(imp.rst, n.boot = 100, n.cores = 1, update.progress = NULL,
  quantiles = 0.5)

Arguments

imp.rst

A class IDEM.IMP list containing complete data with relevant missing values imputed. See imImpAll.

n.boot

Number of bootstrap samples

n.cores

Number of cores for parallel computation

update.progress

Parameter reserved for run idem in GUI mode

quantiles

Quantiles of the composite endpoint to be reported

Value

A class IDEM.BOOT list with length n.boot+1. Each item in the list is a class {IDEM.RST} list (see imEstimate). The first item correspons to the estimation result on the original dataset.

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
lst.var  <- list(trt="TRT", surv="SURV", outcome=c("Y1","Y2"), y0=NULL,
                 endp=c("Y2"), unitTime="days",
                 trt.label = c("UC+SBT", "SAT+SBT"),
                 cov=c("AGE"), endfml="Y2", duration=365, bounds=c(0,100));
rst.fit <- imFitModel(abc, lst.var);
rst.imp <- imImpAll(abc, rst.fit, deltas=c(-0.25,0,0.25),
                    normal=TRUE, chains = 4, iter = 2000, warmup = 1000);
rst.boot <- imBs(rst.imp, n.boot = 10, n.cores = 5, quantiles = c(0.25,0.5,0.75));
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab