You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Survey Solutions applies as value labels the answer option text provided in Designer. For most cases, that's exactly what's needed. For other cases, the label in Designer may be the perfect length for an interview, but too long for data users. In other words, data producers may want to shorten the length of labels for readability/usability for data users. However, there's no straightforward means of identifying value labels that are longer than desired.
Solution
Identify value labels that are equal to or greater than a user-defined desired length. By default, this value should be Survey Solutions' max value label length (250 characters). However, this value should be user-settable.
This might include a few commands:
lbl_list_val_max_len
lbl_assert_no_val_max_len
Implementation ideas
Identify variables (in varlist, by default all variables) that have value labels via ds, has(vallabel)
Create a frame of labels via uselabel
Compute the length of each value label
Report on value labels that are too long (if any)
Return a list of variables with offending value labels in r(varlist) and a list of labels in r(val_labels) (or macro name that fits convention for value labels)
The text was updated successfully, but these errors were encountered:
Problem
Survey Solutions applies as value labels the answer option text provided in Designer. For most cases, that's exactly what's needed. For other cases, the label in Designer may be the perfect length for an interview, but too long for data users. In other words, data producers may want to shorten the length of labels for readability/usability for data users. However, there's no straightforward means of identifying value labels that are longer than desired.
Solution
Identify value labels that are equal to or greater than a user-defined desired length. By default, this value should be Survey Solutions' max value label length (250 characters). However, this value should be user-settable.
This might include a few commands:
Implementation ideas
ds, has(vallabel)
uselabel
r(varlist)
and a list of labels inr(val_labels)
(or macro name that fits convention for value labels)The text was updated successfully, but these errors were encountered: