A method for determining lung function in a patient is disclosed, in which a multi-lumen catheter with an expandable occluding element at its end is used to isolate a targeted lung compartment, and respiratory characteristics at the targeted lung compartment are measured over multiple respiratory cycles. The relation between various characteristics of the respiratory cycle is used to determine compliance of lung tissue within the targeted lung compartment.