Hi all,

I want to recode two of my value labels, which are used for multiple variables.

The first case is about q1-q10 which I previously encoded as followed:

Code:
label define decisionmanual  1 Myself and my husband/partner jointly
           2 Husband/partner
           3 Myself
           4 Someone else in the family
           5 Husband / partner

foreach v of varlist q1-q10 {
    encode `v', gen(_`v') label(decisionmanual)
    order _`v', before(`v')
    drop `v'
    rename _`v' `v'
}
However, I found out that I will have to code them like this:

Code:
"Myself" = 3, "Husband/partner" = 1, "Myself and my husband/partner jointly" = 2, "Husband / partner" = 1, "Someone else in the family" = 1)
I tried several options
1. Re-code: resulted in ''wrong'' labeling and 2. Drop decisionmanual: lost all labels, only numeric values were saved
Code:
foreach v of varlist q1 {
    recode `v' (5=1) (2=1) (1=2) (4=1)
}
The second case for q11-q20 is similar, however here I do not want to change ALL variables in the same manner. The q11-q20 is encoded as followed:

Code:
 label define psychmanual 1 Never 
           2 Often
           3 Sometimes


foreach v of varlist q11-q20 {
    encode `v', gen(_`v') label(psychmanual)
    order _`v', before(`v')
    drop `v'
    rename _`v' `v'
}
However, for q11-q15 it has to be:
"Never" = 3, "Sometimes" = 2, "Often" = 1


and for q16-q20 it has to be:
"Never" = 1, "Sometimes" = 2, "Often" = 3

I hope this is clear!