Power and sample size calculations for longitudinal