A random-effects logit model of work-welfare transitions