Hi,
I am trying to use a loop to change how three values are labeled across a few (3) variables. I have played around with variations of the following, but I keep receiving "invalid snytax." Would appreciate any thoughts on how to label the numeric values with the textual description.
Best,
Caroline
I am trying to use a loop to change how three values are labeled across a few (3) variables. I have played around with variations of the following, but I keep receiving "invalid snytax." Would appreciate any thoughts on how to label the numeric values with the textual description.
Thank you so much!
local vars "q13_1_s q13_2_s q13_3_s"
foreach var of `vars' {
label define `vars' 1 "Worse", modify
label define `vars' 2 "About the same", modify
label define `vars' 3 "Better", modify
}
Best,
Caroline
Comment