One of the course participants was trying to fit a linear mixed effects model with two levels of grouping. statsmodels.MixedLM does not support this. You can interface with R packages that provide this functionality through pymer4, but installing that in a Jupyter notebook is nontrivial because it also involves installing the dependent R packages.
Take home point: you can do statistical modeling in Python, but if your use case is somewhat advanced, you are probably better off using something more special-purpose such as R. We should add this as a note to the statistical modeling section in the tips.
One of the course participants was trying to fit a linear mixed effects model with two levels of grouping.
statsmodels.MixedLMdoes not support this. You can interface with R packages that provide this functionality through pymer4, but installing that in a Jupyter notebook is nontrivial because it also involves installing the dependent R packages.Take home point: you can do statistical modeling in Python, but if your use case is somewhat advanced, you are probably better off using something more special-purpose such as R. We should add this as a note to the statistical modeling section in the tips.