Mixed-effects logistic regression was used to determine the degree to which hospital-level and patient-level variables contributed to observed variation in good outcome , defined as discharge to home , between hospitals .