statsmodels.imputation.mice.MICEData.get_split_data#
- MICEData.get_split_data(vname)[source]#
Return endog and exog for imputation of a given variable
- Parameters:
- vname
str The variable for which the split data is returned.
- vname
- Returns:
- endog_obs
ndarray Observed values of the variable to be imputed.
- exog_obs
ndarray Current values of the predictors where the variable to be imputed is observed.
- exog_miss
ndarray 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.
- endog_obs