Effects of pulmonary function on mortality