by shabde » Wed Mar 17, 2021 4:20 pm
Its me again  again having issues with plotting interactions between factor and covariates in GAMLJ mixed model.
@McFanda maybe this is now the LMER issue you were talking about last year:
Have a look at the attached LMM. The fixed effects estimations are clear and reasonable and according to what would be expected in theory. The slope of the redundant "Trompete" category of the factor "content" should be negative, (since all dummy terms in the regression become zero, we are left with a negative slope of "umhuellung") but, however, is somehow plotted as slightly positive by GAMLJ. The same weird behavior can be seen in the estimated means. This should not be the case, or am I missing something?
Moreover, the model has just a random intercept, but the plot looks as if there were freely varying random slopes.
In this dataset, the factor "content" is not balanced / hierarchical, which might be related to the problem.
 Attachments

 weird_plot.omv
 example lmm
 (213.47 KiB) Downloaded 26 times