Hi all,
I'm trying to predict some outcome based on a MixedLM object based on a training set of 2/3 measurements per group, I want to predict the other 1/3rd of the data and calculate the mean squared error to compare different models with the same dataset.
In R I can just use a predict() function and use my training set model and the test dataset as arguments and it will give me predictions.
I saw that there is a predict function in the help of mixedLM (
http://statsmodels.sourceforge.net/0.6.0/generated/statsmodels.regression.mixed_linear_model.MixedLM.predict.html) but this doesn't work yet.
This is why I want to calculate it manually by using the individual intercepts of the subjects, but I can't seem to find any place/variable where this is stored while running the model.
Can anyone point me in the direction on where to find these intercepts? Or is there another way to use a predict function for MixedLM?
Thank you in advance,
Tarik Luisman