Re: [R] GLM coefficients

From: Ioannis Kosmidis <I.Kosmidis_at_warwick.ac.uk>
Date: Wed, 6 Feb 2008 15:24:47 +0000

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

______________________________________________
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. Received on Wed 06 Feb 2008 - 15:28:23 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 06 Feb 2008 - 16:30:12 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive