Predicting length of stay after road traffic accident accounting for competing endpoints with time-dependent variables