umf
05-08-2009, 02:45 PM
what is the sas command for P(1<Z<2) ?
I tried to do it this way:
data z;
normprob=probnorm(z<2);
normprob=probnorm(z>1);
x=probnorm(z<2) - probnorm(z>1);
output;
run; quit;
proc print data=z;
var x normprob;
run;quit;
and this is the result I got:
Obs x normprob
1 0.34134 0.5
I tried to do it this way:
data z;
normprob=probnorm(z<2);
normprob=probnorm(z>1);
x=probnorm(z<2) - probnorm(z>1);
output;
run; quit;
proc print data=z;
var x normprob;
run;quit;
and this is the result I got:
Obs x normprob
1 0.34134 0.5