summary(fit1)$coef will give you a matrix with the coefficients,
SEs, t-value and p-value.
Use to objects() function to determine the information you can get
from an object.
Thierry
--------------------------------------------------------
ir. Thierry
Onkelinx
Instituut
voor Bosbouw en Wildbeheer / Institute of Forestry and Game Management
Gaverstraat
4
9500
Geraardsbergen
Belgium
tel.
+ 32 54 436 185
Dit
is mijn nieuw e-mailadres / Please note my new email address: Thierry.Onkelinx@inbo.be
Website:
http://ibw.inbo.be
Van:
s-news-owner@lists.biostat.wustl.edu
[mailto:s-news-owner@lists.biostat.wustl.edu] Namens John Sorkin
Verzonden: vrijdag 13 mei 2005 13:19
Aan: s-news@lists.biostat.wustl.edu
Onderwerp: [S] SEs from lm
SPlus 6.2 running under Windows
2000
Please forgive a basic question.
I are using lm, e.g.
fit1<-lm(y~x). I would like to obtain the coefficients AND the SEs of the
coefficient. I know I can get the coefficient using fit1$coefficients[1] and
fit1$coefficients[2], but this does not give the SEs. Could some one tell me
how and can get the SEs? Is there anyway to use a single statement to
get the coefficients and SE?
John Sorkin M.D., Ph.D.
Chief, Biostatistics and Informatics
Baltimore VA Medical Center GRECC and
University of Maryland School of Medicine Claude Pepper OAIC
University of Maryland School of
Medicine
Division of Gerontology
Baltimore VA Medical Center
10 North Greene Street
GRECC (BT/18/GR)
Baltimore, MD 21201-1524