Bayesian proportional hazards model with latent variables