Marginal Model Plot
Study guide: Exam MAS-I
A Marginal Model Plot is a diagnostic plot of the response against a single predictor, or against the fitted values, that overlays a smooth of the observed responses and a smooth of the model's fitted values. A marginal model plot for predictor x_j is built in four steps:
- Plot each observed response
y_iagainstx_{ij}. - Draw a smooth curve through the observed responses, the data smooth.
- Draw a smooth curve through the fitted values
\hat{\mu}_iagainstx_{ij}, the model smooth. - Compare the two smooths across the range of
x_{ij}.
Close agreement between the two smooths shows that the model captures the relationship between the response and that predictor. A systematic separation shows a misspecified functional form for the predictor, or other missing structure such as an interaction. A residual plot shows the same misfit as a pattern in the residuals, while a marginal model plot shows it on the scale of the response.
A Gamma GLM models claim severity with a linear term in vehicle age. In the marginal model plot for vehicle age, the data smooth curves upward for the newest and the oldest vehicles, while the model smooth is nearly flat there. What does this show?
- The two smooths separate at both ends of vehicle age.
- The linear term is a misspecified functional form, because the effect of vehicle age is curved.
- A banded, quadratic or spline term for vehicle age would let the model smooth follow the data smooth.
Reading a set of marginal model plots
A model is judged a good fit only when the two smooths agree in every plot: against each predictor and against the fitted values or linear predictor. A clear separation in any one plot means that the model does not fit. The plot against the linear predictor checks the fit along that one combination of the predictors only.
The data smooth is computed from the observed responses alone. Changing the model's predictors therefore changes the model smooth, but not the data smooth. For a GLM, the response stays on the vertical axis, and the smooths are fitted with the model's own distribution and link.
A modeller adds a quadratic term in vehicle age to the model of the previous example and redraws the marginal model plot. Which smooth changes?
- The data smooth is fitted to the observed severities, which have not changed.
- The model smooth is fitted to the new model's fitted values, which now curve with vehicle age.
- Only the model smooth changes, and the fit is better if it now follows the data smooth.