[R] GLM coefficients
Ioannis Kosmidis
I.Kosmidis at warwick.ac.uk
Wed Feb 6 16:24:47 CET 2008
If I understand correctly.. using the example in ?glm
> utils::data(anorexia, package="MASS")
> anorex.1 <- glm(Postwt ~ Prewt + Treat + offset(Prewt),
family = gaussian, data = anorexia)
> summ <- summary(anorex.1)
Then check
> names(summ)
for the available objects.
For coefficients standard errors and t-tests
> summ$coefficients
Again do this for any object other than "coefficients" you would want
from names(summ).
Best regards,
Ioannis Kosmidis
On 6 Feb 2008, at 15:06, Munyandorero, Joseph wrote:
> Dear all,
>
> After running a glm, I use the summary ( ) function to extract its
> coefficients and related statistics for further use. Unfortunately,
> the
> screen only displays a small (last) part of the results. I tried to
> overcome the problem by creating/saving an object "coef" for
> coefficients of the model and export/save it e.g. as a cvs document.
> While I succed with this operatiion, I do not manage to pick the
> standard deviations and other statistics associated with individual
> coefficients. What may I do to get the whole set of coefficients and
> associated statistics for my GLM? Thanks for your help.
>
> J. Munyandorero
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
===================================
Dr Ioannis Kosmidis
Department of Statistics ,
University of Warwick,
Coventry, CV4 7AL,
United Kingdom
Email : I.Kosmidis at warwick.ac.uk
Home : http://go.warwick.ac.uk/kosmidis
Voice : +44(0)2476 575754
Fax : +44(0)2476 524532
More information about the R-help
mailing list