Solved – Random Forest with longitudinal data

panel datarrandom forestrepeated measures

I have many measurements for multiple individuals, but I'm not sure how to account for that repeat-measure structure when running a random forest model.

Is there a way to account for underlying data structure of longitudinal data using a random forest model?

Is this even necessary? — it seems to me that it should be…

I would especially like to be able to perform this in R.

Best Answer

There is a previous post that discussed including mixed-effects for clustered/longitudinal data.

How can I include random effects into a randomForest

Here is a good reference for decision tree implementations in R: http://statistical-research.com/a-brief-tour-of-the-trees-and-forests/

Also, you may want to review these slides http://www2.ims.nus.edu.sg/Programs/014swclass/files/denis.pdf