[R] cor matrix in multivariate regression

Suyan Tian stian at mail.rockefeller.edu
Tue Oct 22 03:18:10 CEST 2013


Sorry to bother, I want to construct a correlation matrix in multivariate regression  (several dependent variables and they are correlated in some ways) like the followings, 

1   0.8   0  0 …     0 0 
0.8 1     0  0  …    0 0 
0    0     1  0.8 …  0 0 
0   0      0.8 1  … 0 0 
.     .       .     .         ….

.     .        .   .          

0  0                      1  0.8 
0  0                       0.8 1 

Does anyone know how to do it? 

Thanks,

Suyan Tian 
Associate Professor 
The Jilin University 





More information about the R-help mailing list