Regression with correlation matrix as input
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | : Hi. Does anybody know how to introduce data to SPSS in the format of a : correlation matrix, with the aim of doing a regression analysis. * Here's a simple example. MATRIX DATA VARIABLES=ROWTYPE_ V1 TO V13. BEGIN DATA. N 500 500 500 500 500 500 500 500 500 500 500 500 500 CORR 1.000 CORR 0.447 1.000 CORR 0.422 0.619 1.000 CORR 0.436 0.604 0.583 1.000 CORR 0.114 0.068 0.053 0.115 1.000 CORR 0.203 0.146 0.139 0.258 0.349 1.000 CORR 0.091 0.103 0.110 0.122 0.209 0.221 1.000 CORR 0.082 0.063 0.066 0.097 0.321 0.355 0.201 1.000 CORR 0.513 0.445 0.365 0.482 0.186 0.316 0.150 0.154 1.000 CORR 0.304 0.318 0.240 0.368 0.303 0.377 0.163 0.219 0.53 1.000 CORR 0.245 0.203 0.183 0.255 0.272 0.323 0.310 0.288 0.301 0.302 1.000 CORR 0.101 0.088 0.074 0.139 0.279 0.367 0.232 0.320 0.204 0.368 0.340 1.000 CORR 0.245 0.199 -0.184 0.293 0.278 0.545 0.232 0.314 0.394 0.467 0.392 0.511 1.000 END DATA. REGRESSION MATRIX IN(COR=*) etc *Above solution posted by: David Hitchin. *University of Sussex. *(spss newsgroup 2001/03/07). |
Related pages
...