OPTIMAL BINNING
Discretises scale variables into bins that best separate the categories of a guide variable (minimum description length principle).
Syntax
Section titled “Syntax”OPTIMAL BINNING /VARIABLES GUIDE=var BIN=varlist [SAVE=YES [(INTO=varlist)]] [/CRITERIA METHOD=MDLP PREPROCESS=EQUALFREQ(BINS=1000)|NONE FORCEMERGE=0 LOWERLIMIT=INCLUSIVE|EXCLUSIVE LOWEREND=UNBOUNDED|OBSERVED UPPEREND=UNBOUNDED|OBSERVED] [/MISSING SCOPE=PAIRWISE|LISTWISE] [/PRINT ENDPOINTS DESCRIPTIVES ENTROPY].Synopsis
Section titled “Synopsis”| Kind | Procedure (reads data, produces output) |
| Body | main /SUBCOMMAND[=] … |
| Changes data | yes, undoable |
| Subcommands | /CRITERIA, /MISSING, /OUTFILE, /PRINT, /VARIABLES |
| Menu | Analyze ▸ Data Preparation |
| Slot: Guide Variable | 1–1 variable(s); levels: nominal, ordinal; types: numeric, string |
| Slot: Variables to Bin | 1+ variable(s); levels: scale, ordinal; types: numeric |
Examples
Section titled “Examples”OPTIMAL BINNING /VARIABLES GUIDE=default BIN=income age SAVE=YES /CRITERIA FORCEMERGE=2.- Binned variables are ordinal with value labels describing each interval.
Related
Section titled “Related”Generated from OrcStat’s command registry and reference. To suggest a change, open an issue.