I collected data from an experiment where I showed one of four videos (condition
) to a person and asked them to predict how it ended / assign one of three labels to the video (prediction
). I asked each person to make a prediction after they had completed watching 25%, 50%, 75%, and 100% of the video (completed
). I collected 330 responses total.
From a more technical perspective, I have a dataset with two independent variables, and one dependent variable. condition
is categorical and has 4 levels measured between subject; completion
is ordinal with 4 levels (although the underlying construct is continuous - should I model it as a continuous variable?) and measured within-subject. The dependent variable prediction
is categorical with 3 levels. I could make it dichotomous, since I have ground truth on the correct prediction, so I could code it as correct/incorrect
.
My Hypothesis is that slope of correct predictions over time differs significantly between conditions, i.e., for some videos people make better predictions earlier compared to other videos.
Since this is a repeated measures experiment with a categorical dependent variable, I am using a Generalized Linear Mixed-Effects Model (glmer
in R) to fit my data. Here are the models I'm currently fitting:
interaction <- glmer("prediction ~ condition*completion + (1|id)", data=data, family="binomial")
main_effects <- glmer("prediction ~ condition + completion + (1|id)", data=data, family="binomial")
baseline <- glmer("prediction ~ completion + (1|id)", data=data, family="binomial")
I then compare main_effects
to baseline
and interaction
to main_effects
using anova()
. Am I actually testing my hypothesis like this? (I still get confused easily with linear models)
My main question, however, is: I am getting the error: boundary (singular) fit: see ?isSingular
, for main_effects
and interaction
. Am I interpreting this correctly as: The data doesn't support participants as a random factor, and I should fit a glm
instead?
completion
is time in this case. Initially a person observes the first 25% of the video and makes a prediction, then the same person observes the first 50%, makes a prediction, and so forth. Also yes, the response varies between and within subject for each level of the independent variables (some change their response as more of the video is revealed), with exception for the 100% level. Predicting the end after you have observed the end doesn't seem to cause much variance ... $\endgroup$