下面的程序中 lstar 和 g 是事先编好的函数,ab是已知的数据集,想要使
mu从0.1到20以0.1为间隔变化,怎么办,求高手指教
options cmplib =sasuser.funcs;
%let r =10000;
data lstar;
call streaminit(1234);
set ab;
do sample =1 to &r;
call missing(sum1, sum2);
do i =1 to 6000;
x =rand('T',3) ;
y =x/sqrt(3)+
mu ;
lstar =lstar(y,c,d) ;
l =g(y) ;
sum1 ++lstar; sum2 ++l;
if (sum1 lt 0) then sum1=0;
if (sum2 lt 0) then sum2=0;
output;
end;
end;
keep sample i sum1 sum2;
run;