Skip to content
Back to formatted view

Raw Message

Message-ID: <CBE157A7.2034%joehanesr@mail.nih.gov>
Date: 2012-05-22T18:48:07Z
From: Joehanes, Roby (NIH/NHLBI) [F]
Subject: How to obtain t-values from mer objects
In-Reply-To: <CAHmzXO7yk0n5qmyfgCwuAEhhbZdE6LQaEDZdWCKMZwW7+EQC5g@mail.gmail.com>

How about

summary(fm1)@coefs[,3]

Or if you are using the next-generation lme4:
summary(fm1)$coef[,3]

Roby


On 5/22/12 2:35 PM, "Chen, Gang (NIH/NIMH) [C]" <gangchen at mail.nih.gov>
wrote:

> Sorry I should have stated a little clearer.
> 
> I do know how to see or print the t-statistic values at the R prompt.
> What I meant to ask is how to extract the t-statistic values from the
> mer slots.
> 
> Gang
> 
> On Tue, May 22, 2012 at 2:21 PM, Andrzej <agalecki at umich.edu> wrote:
>> Try summary(fm1)
>> 
>> Andrzej
>> 
>> On 5/22/2012 1:56 PM, Gang Chen wrote:
>> 
>> I know how to obtain the fixed effects from a mer object:
>> 
>>> (fm1<- lmer(Reaction ~ Days + (Days|Subject), sleepstudy))
>> 
>> fixef(fm1)
>> 
>> or,
>> 
>>> getME(fm1, 'beta')
>> But how can I obtain the t-statistic values for the fixed effects?
>> 
>> Thanks,
>> Gang
> 
> _______________________________________________
> R-sig-mixed-models at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models