I am working with data where the value -99 always means "Refused Question." It is currently unlabeled. Is there a way to call the value label of a variable?
I would like to run a loop something like this:
Where "<<VALUE LABEL OF `var'>>" calls the value label of the variable.
Thanks!
I would like to run a loop something like this:
Code:
foreach var of varlist _all { label define <<VALUE LABEL OF `var'>> -99 "Refused Question", modify }
Thanks!
Comment