statsmodels.imputation.mice.MICEData.plot_missing_pattern#

MICEData.plot_missing_pattern(ax=None, row_order='pattern', column_order='pattern', hide_complete_rows=False, hide_complete_columns=False, color_row_patterns=True)[source]#

Generate an image showing the missing data pattern

Parameters:
axAxesSubplot, optional

Axes on which to draw the plot. Created if not provided.

row_orderstr, optional

The method for ordering the rows. Must be one of ‘pattern’, ‘proportion’, or ‘raw’.

column_orderstr, optional

The method for ordering the columns. Must be one of ‘pattern’, ‘proportion’, or ‘raw’.

hide_complete_rowsbool, optional

If True, rows with no missing values are not drawn.

hide_complete_columnsbool, optional

If True, columns with no missing values are not drawn.

color_row_patternsbool, optional

If True, color the unique row patterns, otherwise use grey and white as colors.

Returns:
Figure

A figure containing a plot of the missing data pattern.