Especially with mental health outcomes, we often want to transform raw scores into z-scores, but within certain age bands (e.g. measurement occasion or per year). This function does this.
See also
Other trajectory functions:
dh.lmeMultPoly(),
dh.makeAgePolys(),
dh.makeLmerForm(),
dh.predictLmer(),
dh.trimPredData()
Other data manipulation functions:
dh.makeAgePolys(),
dh.makeIQR(),
dh.quartileSplit()