Disaggregating Between and Within Person Effects

created on 3/22/24 by Maria Perica

While cross-sectional data is able to tell us about between-person effects, only longitudinal data can provide information about within-person effects. It is important to note that between-person effects do not necessarily generalize to within-person effects - classic example: at the between-person group level, people are more likely to have a heart attack if they exercise less, but at the within-person level, you are more likely to have a heart attack while exercising than just chillin'.

Two important things to consider when building these models: variable centering and detrending. Centering is important here, even when variables do not vary over time, but if variables vary over time then detrending also becomes important.

Centering

Detrending aka controlling for the effect of time

Sources: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3059070/, https://pubmed.ncbi.nlm.nih.gov/25822206/, https://centerstat.org/centering/