Skip to content
Prev 699 / 20628 Next

Regarding mcmcsamp in the most recent alpha release

Hi Simon, Doug, and list,

    Thanks for the quick responses.  Regarding the dataset, Trial does 
indeed vary within Patient; I've got different numbers of trials 
(observations, really) for each.  The simpler fit you recommended does 
the trick (ML here to improve the AIC estimate as suggested):

RT.lmer = lmer( log( RT ) ~ Trial * Status + (1 | Patient), data = 
rt_agg, method = "ML" )
 > summary( RT.lmer )
Linear mixed model fit by maximum likelihood
Formula: log(RT) ~ Trial * Status + (Trial | Patient)
   Data: rt_agg
    AIC    BIC logLik deviance REMLdev
 -71.24 -37.49  43.62   -87.24  -55.81
Random effects:
 Groups   Name        Variance   Std.Dev.   Corr 
 Patient  (Intercept) 4.0945e-02 0.20234777      
          Trial       4.4598e-07 0.00066781 0.432
 Residual             4.5319e-02 0.21288152      
Number of obs: 502, groups: Patient, 10

Fixed effects:
                     Estimate Std. Error t value
(Intercept)        10.9447820  0.0947941  115.46
Trial              -0.0038163  0.0006622   -5.76
StatusNormal       -0.2812827  0.1337640   -2.10
Trial:StatusNormal  0.0001416  0.0009196    0.15

Correlation of Fixed Effects:
            (Intr) Trial  SttsNr
Trial       -0.046             
StatusNorml -0.709  0.033      
Trl:SttsNrm  0.033 -0.720 -0.036

    Running mcmcsamp on this model yields no exceptions, which is 
terrific.  I should take a moment to praise the default xyplot output 
that mcmcsamp objects now provide.  It's very clear and concise.  
HPDinterval works just fine with that output as well.

    My original model formulation with a random coefficient for Trial 
yields an AIC value of -71.24, slightly greater than the suggested 
model.  I naively modeled a random coefficient for Trial following a 
suggestion of Doug's from earlier this month:
"""
Re: Repeated measures using lme

I'm not sure that those are equivalent specifications.  If I read the
SAS code correctly (and I don't have a lot of experience with SAS) the
equivalent call to lme would have random = ~ 1 | individual

I would be more inclined to start with a model that does have a random
effect for time but does not have the additional correlation
structure.  In lme this would be as in your specification but omitting
the correlation argument.  In lmer it would be

lmer(IL6 ~ dust + time * company + (time | individual), data)
"""
    It's arguable whether my data are truly repeated measures in the 
strictest sense, but they are collected from unique individuals 
performing very similar if not identical tasks at several dozen time 
points ("Trial"s) each.  At any rate, it seemed easy enough to try.  
Thanks very much for the feedback!

Dave
Douglas Bates wrote: