[R] summary.glm() print problem(?) with cor = TRUE

Gavin Simpson gavin.simpson at ucl.ac.uk
Fri Feb 28 14:06:19 CET 2003


Hi,

I've had a look the bug list and searched though the R documentation, email
lists etc. but didn't see anything on this:

when I do:

summary(species.glm1, correlation = TRUE)

I get a correlation matrix like this:

Correlation of Coefficients:
        ( p I(H C
pH      * 1      
I(pH^2) * B 1    
Ca        . .   1
I(Ca^2)   . .   B
attr(,"legend")
[1] 0 ` ' 0.3 `.' 0.6 `,' 0.8 `+' 0.9 `*' 0.95 `B' 1

I'm not worried about the symbolic representation, but should the columns be
labelled this way?  I can work out which is which, but it isn't immediately
clear and doesn't look "nice".  Is this printing intended?

Because when I do:

print(summary(species.glm3, correlation = TRUE), symbolic.cor = FALSE)

I get a much more nicely formatted correlation matrix:

Correlation of Coefficients:
        (Intercept)      pH I(pH^2)      Ca
pH          -0.9321                        
I(pH^2)      0.9233 -0.9968                
Ca           0.1442 -0.4893  0.4950        
I(Ca^2)     -0.1619  0.5009 -0.5162 -0.9876

> version
         _              
platform i386-pc-mingw32
arch     i386           
os       mingw32        
system   i386, mingw32  
status                  
major    1              
minor    6.2            
year     2003           
month    01             
day      10             
language R 

Cheers

Gav

%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
Dr. Gavin Simpson                 [T] +44 (0)20 7679 5522
ENSIS Research Fellow             [F] +44 (0)20 7679 7565
ENSIS Ltd. & ECRC                 [E] gavin.simpson at ucl.ac.uk
UCL Department of Geography       [W] http://www.ucl.ac.uk/~ucfagls/cv/
26 Bedford Way                    [W] http://www.ucl.ac.uk/~ucfagls/
London.  WC1H 0AP.
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%




More information about the R-help mailing list