CATREG
Categorical regression: linear regression with optimal scaling of the dependent and independent variables, optionally regularized.
Syntax
Section titled “Syntax”CATREG VARIABLES=varlist /ANALYSIS=dependent[(LEVEL=…)] WITH predictors[(LEVEL=…)] … [/DISCRETIZATION=…] [/MISSING=LISTWISE] [/MAXITER=100] [/CRITERIA=CONVERGENCE(.00001)] [/REGULARIZATION=NONE|RIDGE(λ [stop step])|LASSO(λ [stop step])|ENET(λ1 λ2)] [/RESAMPLE=NONE|BOOTSTRAP(50)|CROSSVAL(10)] [/PRINT=R COEFF ANOVA CORR OCORR QUANT[(varlist)] HISTORY NONE] [/PLOT=TRANS(varlist) RESID(varlist) NONE] [/SAVE=PRED RES TRDATA].Synopsis
Section titled “Synopsis”| Kind | Procedure (reads data, produces output) |
| Body | main /SUBCOMMAND[=] … |
| Changes data | yes, undoable |
| Subcommands | /ANALYSIS, /CRITERIA, /CRITITER, /DISCRETIZATION, /INITIAL, /MAXITER, /MISSING, /PLOT, /PRINT, /REGULARIZATION, /RESAMPLE, /SAVE, /SUPPLEMENTARY, /VARIABLES |
| Menu | Analyze ▸ Regression |
| Slot: Dependent | 1–1 variable(s); levels: nominal, ordinal, scale; types: numeric, string |
| Slot: Independent(s) | 1+ variable(s); levels: nominal, ordinal, scale; types: numeric, string |
Specifications
Section titled “Specifications”- ANALYSIS: dependent WITH predictors; LEVEL is SPORD (default), SPNOM, ORDI, NOMI or NUME
- REGULARIZATION: one penalty, or start stop step for a path; the final model then uses the penalty with the smallest cross-validated error
- RESAMPLE: BOOTSTRAP(n) adds bootstrap standard errors and F tests; CROSSVAL(k) sets the folds used to choose a penalty on a path
Examples
Section titled “Examples”CATREG VARIABLES=sat wait staff region /ANALYSIS=sat(LEVEL=ORDI) WITH wait(LEVEL=SPORD) staff(LEVEL=ORDI) region(LEVEL=NOMI) /PRINT=R COEFF ANOVA CORR.CATREG VARIABLES=y x1 TO x10 /ANALYSIS=y(LEVEL=NUME) WITH x1 TO x10(LEVEL=NUME) /REGULARIZATION=LASSO(0 .3 .02).- With every variable numeric CATREG equals least-squares regression of standardized variables.
- Importance is Pratt’s measure and sums to 1 over the predictors.
- /MISSING=varlist(LISTWISE|MODEIMPU|EXTRACAT) and /SUPPLEMENTARY=OBJECT(case numbers) with /SAVE=PRED.
Related
Section titled “Related”REGRESSION, REGULARIZED, CATPCA
Generated from OrcStat’s command registry and reference. To suggest a change, open an issue.