Plethysmographic determination of the volume of gas trapped in the lungs.