Statistical analysis of longitudinal studies