Skip to content
Back to formatted view

Raw Message

Message-ID: <CE3AB751-4D21-11D8-88D4-0050E4C03977@warwick.ac.uk>
Date: 2004-01-22T21:27:39Z
From: David Firth
Subject: lm function
In-Reply-To: <20040122203539.74269.qmail@web21502.mail.yahoo.com>

If the model is called "mymodel", you could do

   summary(mymodel)$coefficients[,2]

or

   sqrt(diag(vcov(mymodel)))

This gives the estimated standard errors of the coefficients, which I 
think is what you wanted.

David

On Thursday, Jan 22, 2004, at 20:35 Europe/London, jenny smith wrote:

> Hi,
> How can I extract the standard deviation of the coefficients when 
> using the lm function.  I know ____$coefficient gives me the 
> individual betas.  thank you
>
>
> ---------------------------------
>
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! 
> http://www.R-project.org/posting-guide.html