statsmodels.imputation.bayes_mi.MI.fit¶
-
MI.fit(results_cb=
None)[source]¶ Impute datasets, fit models, and pool results.
- Parameters:¶
- results_cb : function, optional¶
If provided, each results instance r is passed through results_cb, then appended to the results attribute of the MIResults object. To save complete results, use results_cb=lambda x: x. The default behavior is to save no results.
- Return type:¶
A MIResults object.