Learn R Programming

idem (version 5.2)

imFitModel: Imputation model fitting

Description

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

Usage

imFitModel(im.data)

Value

A class IDEMFIT list of modeling fitting results with the following items

im.data

Original class IDEMDATA object

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

Arguments

im.data

A class IDEMDATA object generated by imData

See Also

imData, idem-package

Examples

Run this code
im.abc <- imData(abc, trt="TRT", surv="SURV", outcome=c("Y1","Y2"),
                 y0=NULL, endfml="Y2",
                 trt.label = c("UC+SBT", "SAT+SBT"),
                 cov=c("AGE"), duration=365, bounds=c(0,100));
im.fit <- imFitModel(im.abc);

Run the code above in your browser using DataLab