Assessment of health programme effects with longitudinal studies