data s;
do id=1 to 99;
do j=1 to id;
ran=(248-((j-1)*2))+(24.8-((j-1)*0.2))*rannor(j);
output;
end;
end;
run;
再套一个循环就好了,
宏程序的循环里面,id是作为宏变量~所以不会显示在数据集里面.
data s;
do id=1 to 99;
do j=1 to id;
ran=(248-((j-1)*2))+(24.8-((j-1)*0.2))*rannor(j);
output;
end;
end;
run;
再套一个循环就好了,
宏程序的循环里面,id是作为宏变量~所以不会显示在数据集里面.