I'm trying to recode a variable but each time I do it, 0 changes are made.
The variable in question, w6867, was originally a string variable with str6 storage and %6s display. I first encoded and recast it:
encode w6867, gen(w6867m1m)
recast int w6867m1m
Then, when I recode, zero changes are made. Here is the command:
recode w6867m1m (149=101) (151.9=101) (153.9=101) (155.2=101) (157.9=101) (162.9=101) (164.1=101) (170.9=101) (174.9=101) (183=101) (185=101) (191.9=101) (199.1=101) (202.8=101) (208=101)
Thanks in advance.
The variable in question, w6867, was originally a string variable with str6 storage and %6s display. I first encoded and recast it:
encode w6867, gen(w6867m1m)
recast int w6867m1m
Then, when I recode, zero changes are made. Here is the command:
recode w6867m1m (149=101) (151.9=101) (153.9=101) (155.2=101) (157.9=101) (162.9=101) (164.1=101) (170.9=101) (174.9=101) (183=101) (185=101) (191.9=101) (199.1=101) (202.8=101) (208=101)
Thanks in advance.
Comment