Skip to content
Prev 287015 / 398500 Next

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

On 02-Mar-2012 IOANNA wrote:
Hi Ioanna,
If you look at '?summary.lm' and read the section "Value",
you will see that the returned value is a list with several
components, one of which is:

  coefficients: a p x 4 matrix with columns for the
    estimated coefficient, its standard error,
    t-statistic and corresponding (two-sided) p-value.
    Aliased coefficients are omitted.

This is effectively as displayed by summary(lm...)).
So your 

  Coefficients:
(apart from the significance codes "." and "***") are the
elements in this p=2 x 4 matrix.

Hence

  summary(lm.r)$coef

would give the full 4x4 matrix (you can abbreviate "coefficients"
to "coef"), and so

  summary(lm.r)$coef[2,4]

will give you the P-value for "conc", and

  summary(lm.r)$coef[2,2]

will give the SE of the estimate of "conc". And so on.

Ted.

-------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding at wlandres.net>
Date: 02-Mar-2012  Time: 13:09:03
This message was sent by XFMail