D******i 发帖数: 86 | 1 手头上的一个课题突然出现了个问题,哪位大牛能帮忙看看下面的程序。exposure_age
is existing variable, time is follow-up years while exp_group is newly
created time-varying variable. However, after submitting this SAS Log
indicates that exp_group variable is not found. 我想一定是CLASS statement 不
能识别newly created variable, 但因为我们需要treat exp_group as a categorical
variable instead of continuous 所以真的不知道该怎么办?
proc surveyphreg data=one;
cluster clu; stata ceu; weight final_weight;
class exp_group;
model time*event(0) = exp_group;
if time=exposure_age and exposure_age in (0,5) then exp_group=1;
else if time=exposure_age and exposure_age in (6,10) then exp_group=2;
else exp_group=0;
run; | y**3 发帖数: 267 | 2 YOu need generate exp_group beforehand such as data step | y**3 发帖数: 267 | 3 Sorry, I was wrong
【在 y**3 的大作中提到】 : YOu need generate exp_group beforehand such as data step
| y**3 发帖数: 267 | 4 Sorry, I was wrong
【在 y**3 的大作中提到】 : YOu need generate exp_group beforehand such as data step
|
|