[R] How to recover t-statistics?

Prof Brian Ripley ripley at stats.ox.ac.uk
Fri Feb 27 20:57:02 CET 2004


On Fri, 27 Feb 2004, Joseph J. Gazaille wrote:

> Hi!
>  
> I'm doing Monte Carlo analyses of the distribution 
> of the t-statistics of the parameters of models evaluated 
> with the lm( ) function.
>  
> Is there an easy way to recover the t-statistics
> (similarly to using coef to recover the coefficients)?

Try coef(summary(myfit))

and see what you get ...  ?summary.lm may help you.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list