statsmodels.imputation.mice.MICEData.plot_imputed_hist¶
-
MICEData.plot_imputed_hist(col_name, ax=
None, imp_hist_args=None, obs_hist_args=None, all_hist_args=None)[source]¶ 显示一个变量的插补值作为直方图。
- Parameters:¶
- col_name
str 要绘制的变量的名称。
- ax
AxesSubplot 用于绘制直方图的轴。如果未提供,则创建一个。
- imp_hist_args
dict 创建填补值直方图时传递给 pyplot.hist 的关键字参数。
- obs_hist_args
dict 创建观测值直方图时传递给 pyplot.hist 的关键字参数。
- all_hist_args
dict 创建所有值的直方图时传递给 pyplot.hist 的关键字参数。
- col_name
- Returns:¶
Thematplotlibfigureonwhichthehistogramsweredrawn
Last update:
Oct 16, 2024