help mict_prep

Title

mict_prep -- Prepare categorical time-series data for mict_impute

Syntax

mict_prep stubnames , options

idvar ID variable

Description

mict_prep prepares data for mict_impute. The data
are assumed to be in wide format. The main argument is one or more
variable stubs, given in the form required by reshape long. The
first indicates the main state variable (to be imputed), but stubs
indicating other parallel time-series can also be included. The ID option indicates the case-ID variable to use.
The program calculates a number of
variables with a prefix _mct_ that will be used by mict_impute.

mict_prep is presented as a separate command from
mict_impute because the data can be saved and used repeatedly (or
by separate processes) with different random seeds.

Author

Brendan Halpin, brendan.halpin@ul.ie

Examples

. use mvadmar

. mict_prep state, id(id)

. mict_impute, nimp(10)