[R] Call the Standard Error and t-test probability in linear regression

IOANNA ii54250 at msn.com
Fri Mar 2 13:46:58 CET 2012


Hello, 

I run a linear regression I get the summary, e.g.:

> summary(lm.r) 
   Call: 
   lm(formula = signal ~ conc) 
   Residuals: 
      1        2     3      4      5  
     0.4  -1.0   1.6  -1.8    0.8  
   Coefficients: 
                  Estimate Std.  Error    t value    Pr(>|t|)     
     (Intercept)  3.60000    1.23288    2.92     0.0615 .   
     conc          1.94000     0.05033   38.54  3.84e-05 *** 
   --- 
   Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1  
   Residual standard error: 1.592 on 3 degrees of freedom 
   Multiple R-Squared: 0.998,      Adjusted R-squared: 0.9973  
   F-statistic:  1486 on 1 and 3 DF,  p-value: 3.842e-0

I would like to call the probability of the t-test only in order to use it
separately. For example I 'd like to get: 
Pr<-3.84e-05 

Similarly I want to call the standard error of the parameters and the
function:
SEconc<-0.05033

I don't know how to do this. Any help?

Regards, 
Ioanna



More information about the R-help mailing list