tmdm {isni}R Documentation

Function to fit the transitional missing data model and obtain the predicted probabilities of being observed for all observations.

Description

Fit missing data model and obtain predicted probabilities of being observed for all observations.

Usage

tmdm(formula, data, weights, subset)

Arguments

formula

a formula to specify a multinomial transitional missing data model in the form of g+gp ~Sterms.

data

the name of the dataset for fitting missing data mechansim model

weights

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.

subset

an optional vector specifying a subset of observations to be used in the fitting process for the outcome model and the missingness mechanism model.

Examples

qolefitg <- tmdm(g+gp~as.factor(time)+group+perf+sever,data=qolef)

[Package isni version 1.3 Index]