MRSETS
Defines, deletes or lists multiple response sets: named groups ($name) of variables that record one ‘select all that apply’ question.
Syntax
Section titled “Syntax”MRSETS /MDGROUP NAME=$set [LABEL='label'] VARIABLES=varlist VALUE=counted [CATEGORYLABELS=VARLABELS|COUNTEDVALUES] [LABELSOURCE=VARLABEL] /MCGROUP NAME=$set [LABEL='label'] VARIABLES=varlist /DELETE NAME=[$a $b …]|ALL /DISPLAY NAME=[$a $b …]|ALL.Synopsis
Section titled “Synopsis”| Kind | Dictionary (variable properties) |
| Body | main /SUBCOMMAND[=] … |
| Changes data | no |
| Subcommands | /DELETE, /DISPLAY, /MCGROUP, /MDGROUP |
Specifications
Section titled “Specifications”- MDGROUP: multiple dichotomy set: each variable is one category, counted when it equals VALUE
- MCGROUP: multiple category set: every variable holds one chosen code
- DELETE: removes the named sets (or ALL)
- DISPLAY: lists the named sets (or ALL)
Examples
Section titled “Examples”MRSETS /MDGROUP NAME=$brands LABEL='Brands used' VARIABLES=brand_a brand_b brand_c VALUE=1 /DISPLAY NAME=ALL.MRSETS /MCGROUP NAME=$reasons VARIABLES=reason1 TO reason3.MRSETS /DELETE NAME=[$brands].- Member variables must all be numeric or all string, and a set needs at least two of them.
- Sets are saved in projects and in .sav files (dictionary records 7 and 19). Renaming a member updates the set; deleting one removes it from the set.
Related
Section titled “Related”Generated from OrcStat’s command registry and reference. To suggest a change, open an issue.