statsmodels.imputation.mice.MICE.next_sample#
- MICE.next_sample()[source]#
Perform one complete MICE iteration
A single MICE iteration updates all missing values using their respective imputation models, then fits the analysis model to the imputed data.
- Returns:
resultThe results instance for the analysis model, obtained by fitting the analysis model to one imputed data set.
Notes
This function fits the analysis model and returns the results instance obtained from the fit. The result is not stored by the class and is not used in any subsequent calls to combine. Use fit to run all MICE steps together and obtain summary results.
The complete cycle of missing value imputation followed by fitting the analysis model is repeated n_skip + 1 times and the results from the final fit are returned.