全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
1609 2
2008-09-11

前面问了一个有关IML模块的问题,从好心人的解答中改了一下程序,但是运行出来的矩阵却看不到,为什么呢?

494  finish;
NOTE: Module MAIN defined.
495  run;
NOTE: Opening storage library WORK.IMLSTOR

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2008-9-12 08:00:00
I have not used IML before, but, it looks the result is in the log file.

[此贴子已经被作者于2008-9-12 8:02:52编辑过]

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2008-9-12 08:33:00
sample code from IML manual. Hope it helps

proc iml; /* begin IML session */
    start approx(x); /* begin module */
        y = 1; /* initialize y */
        do until(w < 1e-3); /* begin do loop */
            z = y; /* set z=y */
            y = .5#(z + x/z); /* estimate square root */
            w = abs(y - z); /* compute change in estimate */
        end; /* end do loop */
        return(y); /* return approximation */
    finish approx; /* end module */
    t = approx({3,5,7,9}); /* call function APPROX */
    print t; /* print matrix */
quit;
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群