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_obsndarray

Observed values of the variable to be imputed.

exog_obsndarray

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

exog_missndarray

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

predict_obs_kwdsdict-like

The predict keyword arguments for vname associated with the observed cases, processed through Patsy as required.

predict_miss_kwdsdict-like

The predict keyword arguments for vname associated with the missing cases, processed through Patsy as required.