PanelRegression.plot_residuals#

PanelRegression.plot_residuals(kind='scatter')[source]#

Plot residual diagnostics.

Parameters:

kind (Literal['scatter', 'histogram', 'qq']) – Type of residual plot: - “scatter”: Residuals vs fitted values - “histogram”: Distribution of residuals - “qq”: Q-Q plot for normality check

Returns:

Figure and axes objects

Return type:

tuple[plt.Figure, plt.Axes]