I have a mixed model with many fixed effects, and two random variables (the data is made up of repeat observations of a number of individuals, and has a random intercept and a random slope parameter associated with each individual). The model will be used for prediction. I want to use a regularisation technique to reduce the number of fixed effects as the model is likely overfitted at present.
Would it be valid to run a Lasso analysis on a model which excludes the random effects and use the outcome of this to choose the fixed effects to keep in my mixed model? As in:
- Run a number of Lasso regressions on a training set where the tuning parameter (lambda) is varied
- Calculate the RMSE of an (unseen) test set
- Find the value of lambda which gives the best RMSE in the test set
- Find the variables for which the coefficient is set to zero for the value of lambda that produces the best RMSE in the test set
- Exclude these variables from a subsequent mixed model.
I've found that there are lots of papers for different lasso-type things that people do for mixed models, but I'm struggling to find a clear, reliable, reference that explains why you couldn't just do the steps above... My intuition is that this would not be valid because the Lasso wouldn't know about the structure in the model that the random effects capture... is that right? And if so, could you point me to a nice reference that makes this clear? Or, if it is ok, could anyone point me to a nice reference that makes that clear?
I hope this makes sense, and sorry if it's a simple answer!