Learn R Programming

idem (version 2.2)

imNeedImp: Get subjects that need imputation

Description

Get the index of subjects in a dataset that need imputation, i.e. survivors with functional endpoint missing

Usage

imNeedImp(data.all, lst.var, endponly = TRUE)

Arguments

data.all

Original dataset

lst.var
endponly

Logical variable indicating whether clinical outcomes not used in calculating the final clinical outcome will be imputed. The default is FALSE, indicating that all missing clinical outcomes will be imputed sequentially

Value

Vector of indices of subjects that need imputation

Examples

Run this code
# 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));
inx.imp <- imNeedImp(abc, lst.var);

# }

Run the code above in your browser using DataLab