Hi, Stata users!
I'm recoding a variable on Stata because I want to normalize it and my code is:
recode A005 (-5 -4 -3 -2 -1=.) (4=0 "Not at all important") (3= 1/3 "Not very important") (2= 2/3 "Rather important") (1=1 "Very important"), gen(Work)
but when I do this Stata tells me:
) expected, "/" found
r(198);
Can anyone explain me how I should write the fraction numbers?
I'm recoding a variable on Stata because I want to normalize it and my code is:
recode A005 (-5 -4 -3 -2 -1=.) (4=0 "Not at all important") (3= 1/3 "Not very important") (2= 2/3 "Rather important") (1=1 "Very important"), gen(Work)
but when I do this Stata tells me:
) expected, "/" found
r(198);
Can anyone explain me how I should write the fraction numbers?
Comment