Skip to main content
5 of 5
fixed grammar and formatting
user avatar
user avatar

Another 3 level hierarchical regression

I have a dependent variable: rtln (log transformed reaction time) and 3 predictors: choicenum (ranging from 1 to 6), ifrelevant (0 and 1), and condition (0 and 1), and I have a variable with subject IDs.

I would like to estimate a model where choicenum is nested within subjects. I use the following notation:

lmer(rtln~choicenum + ifrelevant + condition 
 + (1|subject/choicenum),    data=myData)

for some reason this estimates 5 fixed effects for choicenum.

DBR