The cohort was randomly split into derivation and validation samples , and then logistic regression models were used to identify and validate predictors of all-cause rehospitalization within 30 days .