I am trying to estimate a psychometric function by condition, where some conditions are within and some between participants.
Y is a binomial outcome
X1 is a binomial within participant predictor
X2 is a binomial between participants predictor
X3 is an ordinal within participant predictor
Error: Special group-level terms require corresponding population-level terms
However, this was not an issue when X3 was modeled as a continuous variable, and I am not sure how to overcome the issue, given that X2 does not belong to the varying effects.
Then you’d have all the varying effects in the population-level terms as well. It might also make sense to include X3 (or mo(X3)) along with its interactions, but that depends on the data and questions.
Thanks. That runs. It’d be very convenient for me to have separate intercepts and slopes per each condition (the 4 combinations of x1,x2 values), which motivated the question. But I can always calculate them post-hoc.
in the model I get two values for X1:mo(X3) and 2 values for X1:X2:mo(X3).
Would the two values for X1:mo(X3) correspond to the mean between the two X2 conditions or the parameter estimate for when X2 is 0 (or the baseline value for X2)?