Skip to content

MRSETS

Defines, deletes or lists multiple response sets: named groups ($name) of variables that record one ‘select all that apply’ question.

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.
Kind Dictionary (variable properties)
Body main /SUBCOMMAND[=] …
Changes data no
Subcommands /DELETE, /DISPLAY, /MCGROUP, /MDGROUP
  • 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)
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.

MULT RESPONSE, CTABLES


Generated from OrcStat’s command registry and reference. To suggest a change, open an issue.