Suppose you have a multi-select question
Which vegetables did your household consume in the past 7 days? Onions................1 Tomatoes............2 Green peppers...3 Other veggies.....4 Yes/No mode [X]
Suppose furthermore that this multi-select question triggers a roster named
Currently, when the data are exported, the roster ID question
vegetables__id will be numeric values without value labels.
To construct labels, one needs to extract information from the .do associated with the main data file–getting the label values from the name of the multi-select var name (e.g., 1, 2, 3, 4 from
whichVeggies__2, etc.), getting the label text from the variable labels of the multi-select variables (e.g., the text that appears after
: in the label
Which vegetables did your household consume in the past 7 days?:Onions), and constructing a value label to apply to the roster variable.
With a new feature, Survey Solutions data export could automatically construct a value label from the answer options defined for
whichVeggies and apply it to
Having a variable label for the roster ID variable is useful for quick review of the data and for labeling plots derived from the data (e.g., checking whether there are outliers in the unit price for each food item in the food consumption module).