Learn R Programming

idem (version 2.2)

imFitModel: Model fitting

Description

Fit linear imputation models to the observed data from complete survivors for each treatment arm at each time point

Usage

imFitModel(data.all = NULL, lst.var = NULL)

Arguments

data.all

Original dataset

lst.var

Value

A class IDEM.FIT list of modeling fitting results with the following items

lst.var

List of parameters

rst.mdl

A list of modeling fitting results for each model with

lm

results from function lm

formula

model formula

coef

model coefficients

res

residuals

h

bandwidth of residuals for kernel density estimation

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));

rst.fit <- imFitModel(abc, lst.var);

# }

Run the code above in your browser using DataLab