9
$\begingroup$

I'm trying to analyse a survey study in which I'm interested in the way that individual differences between my participants influence how they respond to my stimuli. The stimuli are pieces of writing randomly selected from a large pool of such, and I'm not currently interested in any fixed effects of these stimuli.

My participants each view 5 pieces of writing and make a binomial choice about each on a single-item DV. I have personality variables from each of the participants that I'm interested in as a predictor of their response. When setting up a mixed-effects model in lmer (with a long dataset) I know that I should include a term for the random effects of the stimuli. My question is whether I should also include a term for the random effects of participant, along with the fixed effects of the personality variable. Because differences between participants on my personality measure are my variable of interest, does it make sense to control for random participant effects?

Also, if I do control for the random effects of participant, what am I conceptually doing here? Partitioning out all the participant-level variance that can't be explained by my personality variable? Controlling for the random effects of participant seems to consistently reduce the predictive power of any personality variable I include in the model, which is why I ask.

Some illustrative lmer syntax for the two options: Without participant random effects:

glmer(Choice ~ Personality + (1| StimID), data=choice.long, 
    family='binomial')

With participant random effects:

glmer(Choice ~ Personality + (1| StimID) + (1| PartID), 
    data=choice.long, family='binomial')

Am I specifying the latter model right?

$\endgroup$
1
  • $\begingroup$ this seems like an important question $\endgroup$
    – pep
    Commented Sep 12, 2021 at 16:17

2 Answers 2

0
$\begingroup$

You're correct that the second model reduces the power to detect associations between the individual difference measure and the trial-level outcome by including a random intercept for each participant (including a random intercept is "what you are conceptually doing"). If that is the intention, the second model is specified correctly (1 random intercept for Stim, 1 random intercept for Participant, 1 fixed effect of Personality).

In theory, including the random intercept by participant is necessary to preserve the assumption of independence (each participant has multiple measurements). However, I think I'm missing something, because the variability captured by the random intercept seems essential to understanding the fixed effect (i.e., individual difference).

I know this is old but I'm running into the same question.

$\endgroup$
0
$\begingroup$

As far as I know, random effects generally only affect variance that is not explained by the fixed effects. That is, the model first explains all the variance in the dependent variable with fixed effects and then accounts for the remaining residual variance by random effects.

$\endgroup$
1
  • 2
    $\begingroup$ Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center. $\endgroup$
    – Community Bot
    Commented Feb 27, 2023 at 13:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.