%macro adjust (n,m);data adjust1; set diab.adjust; if _n_=2 then effect='location'; else if _n_=4 then effect='gender'; else do; if _n_=&n then effect=income&m; output; end;run;%mend adjust;%adjust(6,1)%adjust(7,2)%adjust(8,3)我就是想吧obs=6,7,8的分别重命名为income1,income2,income3 if _n_=&n then effect="income&m"; |
|
|
|
|
共 1 个关于本帖的回复 最后回复于 2013-8-16 17:28