Hello,
How do I fit a mixed linear model to my data using Mathematica? The model contains random and fixed effects. In addition, I am interested in estimating variance components for each random effect used in my model!
Any hints that steer me into the right direct are appreciated!
I don’t think that Mathematica has built in functionality for mixed linear models. You may have to program this yourself. Alternatively, you could use R to do so. If you want to do it via Mathematica, you have RLink that may come in useful.
I started to work with RLink and this is actually the way to go! So far it works flawlessly running mixed linear models and estimating variance components using R package “lme4” within Mathematica.