Skip to content
Prev 19559 / 20628 Next

zero variance and standard deviation in random effects

Hi,


thanks for sharing your problem. Concerning your first question, I would not recommend running a regular regression, as the data points in your sample are not independent and this would inflate the type 1 error rate.


In order to find out why the residual variance shows strange values, I would try some trouble shooting. You could run coef(m2) and check whether there are actually different intercepts for Prof. Second I would check the model assumptions, possibly there is a violation of the assumptions that affects model fit (I'd recommend performance::check_model()). Furthermore, how many factor levels does Prof have, I assume 3 according to your output? A small number of levels might be problematic, see Singman & Kellen, 2019*.


*Singmann, H., & Kellen, D. (2019). An introduction to mixed models for experimental psychology. In New methods in cognitive psychology (pp. 4-31). Routledge.


Hope this helps!