Skip to content

Generalized Additive Model

Lets the data decide the shape of a relationship.

  • When a predictor has a nonlinear effect of unknown shape (age, dose, time).
  • For continuous, binary or count outcomes.
  • Effects are additive across terms; smooth terms are penalized so they are no wigglier than the data support.
  • Enough distinct values of each smoothed variable (at least the basis dimension).
  • edf near 1 means an almost linear effect; larger values mean more curvature.
  • The partial-effect plot (±2 SE) shows the shape; the test of each smooth is approximate.
  • Deviance explained is the share of variation the model accounts for.

Blood pressure increased nonlinearly with age (edf = 3.4, F = 41.2, p < .001), rising steeply after 50.

Syntax: GAM bp /SMOOTH=age bmi.


This page comes from OrcStat’s built-in help (the same text as in the app’s Help panel). To suggest a change, open an issue.