Skip to content
Back to formatted view

Raw Message

Message-ID: <Pine.A41.4.58.0401221305000.12616@homer33.u.washington.edu>
Date: 2004-01-22T21:05:52Z
From: Thomas Lumley
Subject: lm function
In-Reply-To: <20040122203539.74269.qmail@web21502.mail.yahoo.com>

On Thu, 22 Jan 2004, 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

$coefficient is not the recommended way to get the coefficients.

use coef(your.model) for the coefficients and vcov(your.model) for their
variance matrix, so that sqrt(diag(vcov(your.model))) are the standard
errors.

	-thomas



>
>
> ---------------------------------
>
>
> 	[[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
>

Thomas Lumley			Assoc. Professor, Biostatistics
tlumley at u.washington.edu	University of Washington, Seattle