SAS IML求矩阵相关系数程序有问题,proc iml ;A={0.483 13.2682 0 4.3646 5.1070,0.4035 13.4909 39.0131 3.6151 5.5005,0.8979 25.7776 9.0513 4.8920 7.5342,0.5927 16.0245 13.2935 4.4529 6.5913};r=nrow(A);c=ncol(A);B=A;do i=1 to c;do p=1 to r;if i
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/18 14:12:06
SAS IML求矩阵相关系数程序有问题,proc iml ;A={0.483 13.2682 0 4.3646 5.1070,0.4035 13.4909 39.0131 3.6151 5.5005,0.8979 25.7776 9.0513 4.8920 7.5342,0.5927 16.0245 13.2935 4.4529 6.5913};r=nrow(A);c=ncol(A);B=A;do i=1 to c;do p=1 to r;if i
SAS IML求矩阵相关系数程序有问题,
proc iml ;
A={0.483 13.2682 0 4.3646 5.1070,
0.4035 13.4909 39.0131 3.6151 5.5005,
0.8979 25.7776 9.0513 4.8920 7.5342,
0.5927 16.0245 13.2935 4.4529 6.5913
};
r=nrow(A);
c=ncol(A);
B=A;
do i=1 to c;
do p=1 to r;
if i=3
then B[p,i]=(A[,i]-A[p,i])/(A[,i]-A[>
SAS IML求矩阵相关系数程序有问题,proc iml ;A={0.483 13.2682 0 4.3646 5.1070,0.4035 13.4909 39.0131 3.6151 5.5005,0.8979 25.7776 9.0513 4.8920 7.5342,0.5927 16.0245 13.2935 4.4529 6.5913};r=nrow(A);c=ncol(A);B=A;do i=1 to c;do p=1 to r;if i
因为粗心:xpx=t(F)*F-t(sum)*sum/n.