A method for generating data indicative of lung function of a subject. The method comprises receiving first data which has been obtained from the subject, and inputting said first data to a model of lung function to generate said data indicative of lung function. The model of lung function comprises a first model component modelling transfer of gaseous oxygen from a gaseous space within the lung to biological material within the lung based upon quantitative data indicative of oxygen content in the inhaled gases and oxygen content in the biological material and a second model component modelling the transfer of oxygen from the lungs by oxygenation of venous blood to create oxygenated blood based upon quantitative data indicative of oxygen content in the venous blood.