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_namestr

要绘制的变量的名称。

axAxesSubplot

用于绘制直方图的轴。如果未提供,则创建一个。

imp_hist_argsdict

创建填补值直方图时传递给 pyplot.hist 的关键字参数。

obs_hist_argsdict

创建观测值直方图时传递给 pyplot.hist 的关键字参数。

all_hist_argsdict

创建所有值的直方图时传递给 pyplot.hist 的关键字参数。

Returns:
The matplotlib figure on which the histograms were drawn

Last update: Oct 16, 2024