powered by
Fit missing data model and obtain predicted probabilities of being observed for all observations.
tmdm(formula, data, weights, subset)
a formula to specify a multinomial transitional missing data model in the form of g+gp ~Sterms.
the name of the dataset for fitting missing data mechansim model
an optional vector of "prior weights" to be used in the fitting process for the missingness mechanism model. Should be NULL or a numeric vector.
an optional vector specifying a subset of observations to be used in the fitting process for the outcome model and the missingness mechanism model.
# NOT RUN { qolefitg <- tmdm(g+gp~as.factor(time)+group+perf+sever,data=qolef) # }
Run the code above in your browser using DataLab