A significant portion of the variation among infants in cost and length of stay is explained by four measures of risk: surfactant replacement, survival to hospital discharge, assisted ventilation, and surgical intervention.