Analyzing cross-sectional and longitudinal lung-function measurements: The effects of age