I have a linear mixed-effects model with subject and event as random effects and a fixed effect of rating (range 1-4) that is the same for all subjects (i.e. each event has a one rating for all subjects):
value ~ rating + (1|subject) + (1|event)
I would like to plot the mean (across subjects and events) and standard error for each rating value, but am not sure how to calculate the standard error so it incorporates the variance across subjects and events. I tried using the effects package in R, which gives me fit and SE. If I have a fixed effect with only two levels, the fit equals the mean. If the fixed effect has four levels, the fit doesn't equal the mean and I'm not sure how to interpret it (and so not sure the provided SE is the one to use).
Any suggestions on how to do this? Thanks!