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)?
Thanks,
joseph

Try


tstat <- summary(fit)$coef[, "t value"]

or

tstat <- coef(fit)/sqrt(diag(vcov(fit)))

-sundar

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

Reply via email to