立即打开
*Here is an example for numerical integration;
****numerical integration***;
proc iml;
/* Define the integrand */
start fun(t) global (cnt);
cnt=cnt+1;
v = PDF('NORMAL',t);
return(v);
finish;
/* Call QUAD */
a = { .M 0};
cnt=0;
call quad(z,"fun",a);
print z[format=E21.14] cnt;
p=CDF('NORMAL',0);
print p[format=E21.14];
a = { .M 1.96};
cnt=0;
call quad(z,"fun",a);
print z[format=E21.14] cnt;
p=CDF('NORMAL',1.96);
print p[format=E21.14];
quit;
扫码加我 拉你入群
请注明:姓名-公司-职位
以便审核进群资格,未注明则拒绝
全部回复
扫码加我 拉你入群
请注明:姓名-公司-职位
以便审核进群资格,未注明则拒绝
相关推荐
栏目导航
热门文章
推荐文章
扫码加好友,拉您进群