白眉老夫子 发表于 2022-9-27 09:06 
是需要同时按照X1和X2分组么? 不是很理解你的要求,你可以把具体要求说清楚一些,或者说你把自己按照X1作 ...
proc surveyphreg data=aa;
by x1;
strata SDMVSTRA;
cluster SDMVPSU;
class x1(param=ref ref=first) x2(param=ref ref=first);
model PERMTH_EXM*MORTSTAT(0)=x1 x2 /rl;
weight WEIGHT;
run;