文档详情

数据分析实验报告 典型相关分析.doc

发布:2017-03-23约7.73千字共6页下载文档
文本预览下载声明
实验九 典型相关分析 实验目的和要求 能利用原始数据与相关矩阵、协主差矩阵作相关分析,能根据SAS输出结果选出满足要求的几个典型变量. 实验要求:编写程序,结果分析. 实验内容:4.9 data examp4_9; input x1-x2 y1-y2; cards; 1 191 155 179 145 2 195 149 201 152 3 181 148 185 149 4 183 153 188 149 5 176 144 171 142 6 208 157 192 152 7 189 150 190 149 8 197 159 189 152 9 188 152 197 159 10 192 150 187 151 11 179 158 186 148 12 183 147 174 147 13 174 150 185 152 14 190 159 195 157 15 188 151 187 158 16 163 137 161 130 17 195 155 183 158 18 186 153 173 148 19 181 145 182 146 20 175 140 165 137 21 192 154 185 152 22 174 143 178 147 23 176 139 176 143 24 197 167 200 158 25 190 163 187 150 ; run; proc cancorr data=examp4_9 corr; var x1-x2; with y1-y2; run; 由SAS proc cancorr过程求得样本相关系数矩阵 The SAS System 14:21 Saturday, October 30, 2012 3 The CANCORR Procedure Correlations Among the Original Variables 1、变量x1-x2的相关系数矩阵: Correlations Among the VAR Variables x1 x2 x1 1.0000 -0.2094 x2 -0.2094 1.0000 2、变量y1-y2的相关系数矩阵: Correlations Among the WITH Variables y1 y2 y1 1.0000 0.6932 y2 0.6932 1.0000 3、变量x1-x2与y1-y2的相关系数矩阵: Correlations Between the VAR Variables and the WITH Variables y1 y2 x1 -0.0108 -0.2318 x2 0.7346 0.7108 变量间高度相关。 The SAS System 14:21 Saturday, October 30, 2012 4
显示全部
相似文档