[R-sig-ME] How to obtain t-values from mer objects

Ben Bolker bbolker at gmail.com
Tue May 22 22:27:39 CEST 2012


Gang Chen <gangchen6 at ...> writes:

> 
> Yes, that works well. Thanks a lot, Roby!
> 
> Gang
> 
> On Tue, May 22, 2012 at 2:48 PM, Joehanes, Roby (NIH/NHLBI) [F]
> <roby.joehanes at ...> wrote:
> > How about
> >
> > summary(fm1)@coefs[,3]
> >
> > Or if you are using the next-generation lme4:
> > summary(fm1)$coef[,3]
> >

  Generally I think

  coef(summary(fm1))[,3]

 should allow you to get the t-statistics in either case,
*without* delving into the internal structure of the fitted model.
If you find that you consistently need to dig into the internals
of the fitted objects, you should ask on the list and/or ask
the maintainers to provide an appropriate accessor method ...

  (I will admit that I haven't tested this)

  Ben Bolker



More information about the R-sig-mixed-models mailing list