DISCRIMINANT
Linear discriminant analysis: functions that separate known groups, classification of cases and stepwise selection.
Syntax
Section titled “Syntax”DISCRIMINANT /GROUPS=var(min,max) /VARIABLES=varlist [/METHOD=DIRECT|WILKS|MAHAL|MAXMINF|MINRESID|RAO] [/FIN=3.84] [/FOUT=2.71] [/PIN=p] [/POUT=p] [/PRIORS=EQUAL|SIZE|values] [/STATISTICS=MEAN STDDEV UNIVF BOXM COEFF RAW CORR COV GCOV TCOV TABLE CROSSVALID ALL] [/PLOT=COMBINED MAP] [/SAVE=CLASS SCORES PROBS].Synopsis
Section titled “Synopsis”| Kind | Procedure (reads data, produces output) |
| Body | main /SUBCOMMAND[=] … |
| Changes data | yes, undoable |
| Subcommands | /ANALYSIS, /CLASSIFY, /FIN, /FOUT, /FUNCTIONS, /GROUPS, /HISTORY, /MATRIX, /MAXSTEPS, /METHOD, /MISSING, /OUTFILE, /PIN, /PLOT, /POUT, /PRIORS, /ROTATE, /SAVE, /SELECT, /STATISTICS, /TOLERANCE, /VARIABLES |
| Menu | Analyze ▸ Classify |
| Slot: Grouping Variable | 1–1 variable(s); levels: nominal, ordinal; types: numeric |
| Slot: Independents | 1+ variable(s); levels: scale, ordinal; types: numeric |
Specifications
Section titled “Specifications”- GROUPS: grouping variable and the range of integer codes to analyse; other cases are classified as ungrouped
- METHOD: DIRECT enters all variables; the stepwise methods choose by Wilks’ lambda, Mahalanobis distance, smallest F, unexplained variance or Rao’s V
- STATISTICS: TABLE classification results; CROSSVALID leave-one-out classification; BOXM equality of covariance matrices
- SAVE: CLASS predicted group (Dis_n), SCORES discriminant scores (Disk_n), PROBS group membership probabilities
Examples
Section titled “Examples”DISCRIMINANT /GROUPS=species(1,3) /VARIABLES=sepal_length TO petal_width /STATISTICS=BOXM TABLE CROSSVALID /SAVE=CLASS.DISCRIMINANT /GROUPS=default(0,1) /VARIABLES=income debt age /METHOD=WILKS /PRIORS=SIZE.- Validated against the published canonical results for Fisher’s iris data and against scikit-learn’s linear discriminant analysis.
Related
Section titled “Related”Generated from OrcStat’s command registry and reference. To suggest a change, open an issue.