A pilot study was designed to evaluate the frequency of extubation failure , develop a randomization approach , and analyze the feasibility of a powered randomized trial to compare noninvasive positive-pressure ventilation and standard oxygen therapy post extubation for preventing reintubation within 48 hours in children with respiratory failure .