【发布时间】:2019-04-23 00:54:26
【问题描述】:
我需要帮助来创建这个年龄组变量。在我的数据中,年龄被测量到小数点后 9 位。我可以决定我刚刚选择的四分位数的类别。但我不断收到这些错误......
“错误 388-185:需要算术运算符。 ERROR 200-322:符号无法识别,将被忽略。”
我已尝试将 le 舍入并将其更改为
data sta310.hw4;
set sta310.gbcshort;
age_cat=.;
if age le 41.950498302 then age_cat = 1;
if age > 41.950498302 and le 49.764538386 then age_cat=2;
if age > 49.764538386 and le 56.696966378 then age_cat=3;
if age > 56.696966378 then age_cat=4;
run;
【问题讨论】:
标签: sas