statsmodels.imputation.mice.MICEData.plot_fit_obs

MICEData.plot_fit_obs(col_name, lowess_args=None, lowess_min_n=40, jitter=None, plot_points=True, ax=None)[source]

绘制拟合值与插补值或观测值的散点图。

Parameters:
col_namestr

要绘制在水平轴上的变量。

lowess_argsdict-like

传递给lowess拟合的关键字参数。一个字典的字典,键为‘o’和‘i’,分别表示‘观察值’和‘插补值’。

lowess_min_nint

绘制低通滤波拟合的最小样本量

jitterfloat or tuple

绘图中用于抖动点的标准差。 可以是应用于两个轴的单个标量,或者是分别包含x轴抖动和y轴抖动的元组。

plot_pointsbool

如果为真,数据点将被绘制。

axAxesSubplot

要在其上绘制的轴,如果未提供则创建。

Returns:
The matplotlib figure on which the plot is drawn.

Last update: Oct 16, 2024