|
|
6#

楼主 |
发表于 2004-10-24 23:20:59
|
只看该作者
re
给你的只是data step。你要用proc要把它放在macro里面。你想要的macro应该是:
data aa;
input x y@@;
cards;
1 0
2 0
3 0
4 0
5 0
5.5 0
6 1
7 1
8 1
9 1
10 1
11 1
;
%macro test;
%let numtorplace=6;
%do j =1 %to &numtorplace;
data bb&j;
set aa;
array replace{&numtorplace} (6.0,6.05,6.10,6.15,6.20,8.0);
if x=5.5 then x = replace(&j);
drop i replace1-replace8;
run;
proc logistic desc;
model y=x;
run;
%end;
%mend test;
%test; |
|