z**********i 发帖数: 12276 | 1 有个DATASET,里面的有些MISSING被输入了99,88,77。如何把99,88,77变成MISSING.
多谢!! | c******j 发帖数: 270 | 2 if aaa in (99,88,77) then aaa=.; | z**********i 发帖数: 12276 | 3 Because a lot of variables in the dataset, I probably want to change all 99,
88,77 to ., but not 1988 or 1999 .
Thanks.
【在 c******j 的大作中提到】 : if aaa in (99,88,77) then aaa=.;
| c******j 发帖数: 270 | 4 did you try it?
the code should change 1988 to missing
99,
【在 z**********i 的大作中提到】 : Because a lot of variables in the dataset, I probably want to change all 99, : 88,77 to ., but not 1988 or 1999 . : Thanks. :
| z**********i 发帖数: 12276 | 5 I didnot try that. It looks like only change 77,88,99 for variable aaa.
I want to change all the 77,88,99 in the dataset, but not 1977,1988,1999.
Thanks.
【在 c******j 的大作中提到】 : did you try it? : the code should change 1988 to missing : : 99,
| z**********i 发帖数: 12276 | 6 probably use array?
MISSING.
【在 z**********i 的大作中提到】 : 有个DATASET,里面的有些MISSING被输入了99,88,77。如何把99,88,77变成MISSING. : 多谢!!
| a********a 发帖数: 3176 | 7 Do you mean that 1977 was coded as '77'? If so, you'd need to identify and
single out these year variables to be not included in the recoding.
【在 z**********i 的大作中提到】 : I didnot try that. It looks like only change 77,88,99 for variable aaa. : I want to change all the 77,88,99 in the dataset, but not 1977,1988,1999. : Thanks.
| B******y 发帖数: 9065 | 8 具体问题具体分析。楼主应该根据在什么情况下发生输入错误的现象,找出相应的解决
。一个通用的Code往往会有问题的。 | z**********i 发帖数: 12276 | 9 实际上,没有在dataset 里没有1977,我的意思是限定到77,88,99,不要把里面包含
这些数字的变了。
多谢回复!
and
【在 a********a 的大作中提到】 : Do you mean that 1977 was coded as '77'? If so, you'd need to identify and : single out these year variables to be not included in the recoding.
| z**********i 发帖数: 12276 | 10 我实际上,就想问问通用的code应该怎么写? 多谢!!
【在 B******y 的大作中提到】 : 具体问题具体分析。楼主应该根据在什么情况下发生输入错误的现象,找出相应的解决 : 。一个通用的Code往往会有问题的。
|
|