是这样的。。。我的sas装的是9.2版本,为什么运行出来就是没有 “test of H0:the canonical correlations...” 这一项。。。
程序如下。
我觉得我程序没问题的啊
data ocusat(type=corr);
infile cards missover;
input _name_ $ x1-x5 y1-y7 ;
_type_='corr';
cards;
x1 1.00
x2 0.49 1.00
x3 0.53 0.57 1.00
x4 0.49 0.46 0.48 1.00
x5 0.51 0.53 0.57 0.57 1.00
y1 0.33 0.30 0.31 0.24 0.38 1.00
y2 0.32 0.21 0.23 0.22 0.32 0.43 1.00
y3 0.20 0.16 0.14 0.12 0.17 0.27 0.33 1.00
y4 0.19 0.08 0.07 0.19 0.23 0.24 0.26 0.25 1.00
y5 0.30 0.27 0.24 0.21 0.32 0.34 0.54 0.46 0.28 1.00
y6 0.37 0.35 0.37 0.29 0.36 0.37 0.32 0.29 0.30 0.35 1.00
y7 0.21 0.20 0.18 0.16 0.27 0.40 0.58 0.45 0.27 0.59 0.31 1.00
;
proc cancorr data=ocusat vprefix=U wprefix=V edf=783 red;
var x1-x5;
with y1-y7;
run;