Kum-Hoe,
You need to used the summary function. I hope the example below will
help you get the coefficeints:

 myfit<-lm(y1~x1)
 coefficients(summary(myfit))

John


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

410-605-7119
[EMAIL PROTECTED]

>>> "Kum-Hoe Hwang" <[EMAIL PROTECTED]> 05/18/06 7:03 AM >>>
Hi R Gurus!

I conducted regression and anova followings :

Coefficients:
                                  Estimate Std. Error t value Pr(>|t|)
(Intercept)                       6.07e-01   5.95e-02   10.19  < 2e-16
***
nemp                              2.87e-06   1.04e-07   27.63  < 2e-16
***
as.factor(corridor1)A   -8.81e-02   2.13e-02   -4.14  3.6e-05 ***
as.factor(corridor1)B    1.75e-01   3.02e-02    5.78  8.8e-09 ***
as.factor(corridor1)C      1.09e-02   2.74e-02    0.40  0.69196
as.factor(corridor1)D      2.58e+00   1.56e-01   16.51  < 2e-16 ***
as.factor(corridor1)E -6.75e-03   1.76e-02   -0.38  0.70107
...

I do want to get the following results:
Coefficients:
                                  Estimate Std. Error t value Pr(>|t|)
(Intercept)                       6.07e-01   5.95e-02   10.19  < 2e-16
***
nemp                              2.87e-06   1.04e-07   27.63  < 2e-16
***
as.factor(corridor1)        ?????       ??????    ?????   ?????*

But I do not know how to get coefficients of regression or Anova
model.
Thanks in advance,

-- 
Kum-Hoe Hwang, Ph.D.Phone : 82-31-250-3516Email : [EMAIL PROTECTED] 

        [[alternative HTML version deleted]]

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help 
PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to