to edle
for the looping, maybe you want this? [manually compute Y for each given w, sigma]?
data comp_out;
do w=0 to 1 by 0.1;
do sigma=0 to 710 by 1;
Y1= exp(sigma*0);
Y2= exp(sigma);
Y3= exp(-sigma);
/* P1= 1/3; P2= 1/3; P3= 1/3;*/
y=(log(w1*Y1+(1-w))+log(w*Y2+(1-w))+log(w*Y3+(1-w)))/3;
output; keep w sigma Y;
end;
end;
run;
don't understand ur second Q. Do u mean initial values?