Power and sample size calculations for longitudinal studies estimating a main effect of a time-varying exposure