statsmodels.imputation.mice.MICEData.get_split_data

MICEData.get_split_data(vname)[source]

Return endog and exog for imputation of a given variable.

Parameters:
vnamestr

The variable for which the split data is returned.

Returns:
endog_obsDataFrame

Observed values of the variable to be imputed.

exog_obsDataFrame

Current values of the predictors where the variable to be imputed is observed.

exog_missDataFrame

Current values of the predictors where the variable to be Imputed is missing.

init_kwdsdict-like

The init keyword arguments for vname, processed through Patsy as required.

fit_kwdsdict-like

The fit keyword arguments for vname, processed through Patsy as required.