cumulativePheno function

Reduce phenotypes in longitudinal data to cumulative sums of phenotypes.