全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
1210 0
2011-06-27
Note: some features may need SAS 9.2  IMLplus

matrix A is a given COV.  x1, x2, x3 (col1 col2 col3) are randomly generated having the given COV.

proc iml;
A = {25  0  5,
      0  4  6,
      5  6 59};
U = root(A);
print U;
call randseed(2);
x1=j(500000,1);
x2=x1;
x3=x1;
call randgen(x1, 'normal');
call randgen(x2, 'normal');
call randgen(x3, 'normal');
z=(x1||x2||x3)*U;
para={'col1', 'col2','col3'};
para={'col1' 'col2' 'col3'};
create t from z;
append from z;
close t;
submit para;
proc corr data=t cov;
var &para ;
run;
endsubmit;

quit;
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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