linear mixed model error: "missing value where TRUE/FALSE needed"

General help and assistance with jamovi. Bug reports can be made at our issues page: https://github.com/jamovi/jamovi/issues . (If you're unsure feel free to discuss it here)
Post Reply
FraStra
Posts: 2
Joined: Thu Oct 19, 2023 3:47 pm

linear mixed model error: "missing value where TRUE/FALSE needed"

Post by FraStra »

Dear Jamovi Experts,

I'm trying to perform a linear mixed model with the subject ID as a random factor and reaction times, type of object, and rating as fixed factors. When I try to perform the post-hoc test on the interaction "object * rating" I get this error message "missing value where TRUE/FALSE needed." I attached the model and the event file.

Thanks!
Francesca
Attachments
MixedModel_REML_interaction_contrasts.omv
(333.2 KiB) Downloaded 310 times
event_file.csv
(21.95 KiB) Downloaded 306 times
User avatar
mcfanda@gmail.com
Posts: 462
Joined: Thu Mar 23, 2017 9:24 pm

Re: linear mixed model error: "missing value where TRUE/FALSE needed"

Post by mcfanda@gmail.com »

If you do a `Contingency table' between `Familiarity_rating` and `Object_material`, you see that some cells are empty. Because of that, the model you planned cannot be estimated, and so are the post-hoc. The model needs to have data (several data points) in every cell defined by the interaction.
You may want to consider `Familiarity_rating` as a continuous variable. That will save many degrees of freedom and hopefully the model may work.
FraStra
Posts: 2
Joined: Thu Oct 19, 2023 3:47 pm

Re: linear mixed model error: "missing value where TRUE/FALSE needed"

Post by FraStra »

Hi, thanks a lot for the reply! I tried to replace the missing values with some numbers, but I got the same error. I also tried to change the type of scale of the ratings from ordinal to continuous, as you suggested, but then this variable becomes a "covariate" instead of a "factor," and the post-hoc contrasts cannot be performed... Any other suggestion that I can try?

Thank you,
Francesca
Post Reply