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]¶
Plot fitted versus imputed or observed values as a scatterplot.
- Parameters:
- col_name
str
The variable to be plotted on the horizontal axis.
- lowess_argsdict-like
Keyword arguments passed to lowess fit. A dictionary of dictionaries, keys are ‘o’ and ‘i’ denoting ‘observed’ and ‘imputed’, respectively.
- lowess_min_n
int
Minimum sample size to plot a lowess fit
- jitter
float
ortuple
Standard deviation for jittering points in the plot. Either a single scalar applied to both axes, or a tuple containing x-axis jitter and y-axis jitter, respectively.
- plot_pointsbool
If True, the data points are plotted.
- ax
AxesSubplot
Axes on which to plot, created if not provided.
- col_name
- Returns:
The
matplotlib
figure
on
which
the
plot
is
drawn.