[R] Coefficients from LM
Dieter Menne
dieter.menne at menne-biomed.de
Fri Sep 16 09:21:12 CEST 2005
Charles Annis, P.E. <Charles.Annis <at> StatisticalEngineering.com> writes:
> Here's an example with a glm; lm() works the same way but has fewer internal
> objects.
>
> mod3 <- glm(tree ~ altitude, family = binomial)
>
> You can use names() to find out what's inside:
>
> > names(mod3)
> [1] "coefficients" "residuals" "fitted.values" "effects"
You get more information about the internals by using str(mod3) instead of names
(mod3).
Dieter
More information about the R-help
mailing list