GAM
Generalized additive model: smooth nonlinear effects by penalized splines, plus regression spline terms.
Syntax
Section titled “Syntax”GAM dep [BY factors] [WITH covariates] /SMOOTH=x1[(k)] … [/SPLINE=x(df) …] [/FAMILY=GAUSSIAN|BINOMIAL|POISSON] [/PLOT=NONE] [/SAVE=PRED RESID].Synopsis
Section titled “Synopsis”| Kind | Procedure (reads data, produces output) |
| Body | main /SUBCOMMAND[=] … |
| Changes data | yes, undoable |
| Subcommands | /CRITERIA, /FAMILY, /MISSING, /PLOT, /SAVE, /SMOOTH, /SPLINE |
| Menu | Analyze ▸ Extended |
| Slot: Dependent | 1–1 variable(s); levels: nominal, ordinal, scale; types: numeric |
| Slot: Smooth terms | 0+ variable(s); levels: scale; types: numeric |
| Slot: Linear covariates | 0+ variable(s); levels: nominal, ordinal, scale; types: numeric |
Examples
Section titled “Examples”GAM bp WITH sex_code /SMOOTH=age(10) bmi.GAM default /SMOOTH=income /FAMILY=BINOMIAL.GAM y WITH z /SPLINE=x(5).- Smoothing parameters are chosen by GCV; partial-effect plots show ±2 standard errors.
Related
Section titled “Related”Generated from OrcStat’s command registry and reference. To suggest a change, open an issue.