Secondary objectives are to evaluate the effect of preoperative inspiratory muscle training on length of hospital stay , duration of mechanical ventilation , incidence of other postoperative ( pulmonary ) complications , quality of life , and on postoperative respiratory muscle function and lung function .