From: Liaw, Andy (andy_liaw@merck.com)
Date: Fri 20 Dec 2002 - 17:11:13 EST
Message-id: <51F9C42DA15CD311BD220008C707D81906FFC9F8@usrymx10.merck.com>
Try print(summary(lm2, corr=TRUE), symbolic.corr=FALSE). It *is* in the
help page.
HTH,
Andy
> From: Ted.Harding@nessie.mcc.ac.uk
> Subject: [R] Printing correlation matrices (lm/glm)
>
> Hi Folks,
>
> I'm analysing some data which, in its simplest aspect,
> has 3 factors A, B, C each at 2 levels.
>
> If I do
>
> lm1 <- lm(y ~ A*B)
>
> say, and then
>
> summary(lm1, corr=T)
>
> I get the correlation matrix of the estimated coeffcients
> with numerical values for the correlations (3 coeffs in this
> case). Likewise with 'glm' instead of 'lm'.
>
> However, if I do
>
> lm2 <- lm(y ~ A*B*C)
>
> and then
>
> summary(lm2, corr=T)
>
> I get only symbols (such as ".", "+", "*") for the values,
> denoting ranges, and not numbers (7 coefficients in this case).
>
> Presumably this happens when the number of columns is considered
> to be getting a bit large for numbers -- though 7 is not huge ...
>
> Anyway, is there any way I can get the full correlation matrix
> out with numbers instead of symbols, even with several coefficients?
>
> With thanks,
> Ted.
------------------------------------------------------------------------------
______________________________________________
R-help@stat.math.ethz.ch mailing list
http://www.stat.math.ethz.ch/mailman/listinfo/r-help
This archive was generated by hypermail 2.1.3 : Tue 01 Jun 2004 - 09:31:59 EST