correlation predictors problem
Robert Espesser -- CNRS <Robert.Espesser at lpl.univ-aix.fr> writes:
R colleagues, I want to get the correlation between the coefficients of a regression. Everything seems OK, but when there are more than 3 regressors, the correlation matrix is completely wrong, as follows:
....
Correlation of Coefficients:
( dP dI dC mHP
durP 1
durI 1
durC 1
moyHzPB . 1
moyHzIN ,
attr(,"legend")
[1] 0 ` ' 0.3 `.' 0.6 `,' 0.8 `+' 0.9 `*' 0.95 `B' 1
Um, wrong in what way? If you just think this looks weird, blame Martin who wrote the code for displaying correlation matrices like this. See the help for symnum() for what it means. You can turn this off by passing symbolic.cor=FALSE to print.summary.lm. If the actual correlations are wrong, you need to tell us why you think so.
O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._