[R] R help?

Greg Snow Greg.Snow at imail.org
Thu Jan 24 17:20:21 CET 2008


Use summary on the fitted lm object, i.e.:

> fit <- lm(y ~ x, data=mydata)
> summary(fit)

And the t-tests will be printed (along with a bunch of other stuff).
You can also save the results of summary if you want to use the t-values
and p-values for something else.

Hope this helps,

-- 
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at imail.org
(801) 408-8111
 
 

> -----Original Message-----
> From: r-help-bounces at r-project.org 
> [mailto:r-help-bounces at r-project.org] On Behalf Of vic zhong
> Sent: Thursday, January 24, 2008 2:07 AM
> To: r-help at r-project.org
> Subject: [R] R help?
> 
> Hey does anyone know how to do t.test for beta1 and beta0, 
> which are the slope and intercept of the linear regression
>    
>   Thanks
> 
> 	[[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.
> 



More information about the R-help mailing list