We study job durations using a multivariate hazard model allowing for worker-specific and firm-specific unobserved determinants. The latter are captured by unobserved heterogeneity terms or random effects, one at the firm level and another at the worker level. This enables us to decompose the variation in job durations into the relative contribution of the worker and the firm. We also allow the unobserved terms to be correlated in a model that is primarily relevant for markets with small firms. For the empirical analysis, we use a Portuguese longitudinal matched employer-employee dataset. The model is estimated with a Bayesian Markov chain Monte Carlo (MCMC) estimation method. The results imply that unobserved firm characteristics explain almost 40% of the systematic variation in log job durations. In addition, we find a positive correlation between unobserved worker and firm characteristics. © 2012 American Statistical Association.