# Optimal method for including repeated measures in prediction model

**URL:** <https://discourse.datamethods.org/t/optimal-method-for-including-repeated-measures-in-prediction-model/5122>\
**Category:** modeling strategy\
**Tags:** longitudinal\
**Created:** [November 23, 2021, 1:57pm UTC](https://discourse.datamethods.org/t/optimal-method-for-including-repeated-measures-in-prediction-model/5122 "2021-11-23T13:57:38Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![davidcnorrismd](https://discourse.datamethods.org/user_avatar/discourse.datamethods.org/davidcnorrismd/32/3502_2.png) [@davidcnorrismd](https://discourse.datamethods.org/u/davidcnorrismd)\
**Post date:** [November 24, 2021, 9:43am UTC](https://discourse.datamethods.org/t/optimal-method-for-including-repeated-measures-in-prediction-model/5122/2 "2021-11-24T09:43:48Z")

</div>

If a formal approach is desired, I think [state-space modeling](https://discourse.datamethods.org/t/special-vs-markov-models-for-analyzing-within-patient-variability/4546/3) is ideal. Note in particular that your problem (irregular timing of measurements) arises only from the customary statistician’s habit of treating the data as the [_ding an sich_](https://en.wikipedia.org/wiki/Thing-in-itself), rather than a mere phenomenon. The state-space approach, by contrast, posits an underlying _state process_ (generally, multivariate) that evolves (generally) in continuous time, and gives rise to the data via a _measurement process_ that is distinct from the underlying state process.

---

_[View the full topic](https://discourse.datamethods.org/t/optimal-method-for-including-repeated-measures-in-prediction-model/5122)._
