RT Journal Article T1 Estimation of Two-States Proportional Hazard Rates Models with Unobserved Heterogeneity A1 Congregado Ramírez de Aguilera, Emilio A1 Troncoso Ponce, David A1 Rubino, Nicola A1 Morales Kirioukhina, Alejandro AB This article examines two-state proportional hazard rate models with unobserved heterogeneity specific to each state, a framework that is especially relevant for labor market transitions. To make estimation feasible in large longitudinal datasets, we implement hshaz2s, a Stata routine that uses analytical expressions for the gradient vector and Hessian matrix of the log-likelihood function through the dual second-order moment (d2 ml) method. The empirical application estimates a discrete-time duration model for transitions between employment and unemployment using Spanish labor market microdata for young low-skilled workers over 2000–2019. The results show that apprenticeship contracts are associated with lower exit rates from employment than other temporary contracts, but not with faster transitions from unemployment back into employment. The estimates also reveal substantial state-specific unobserved heterogeneity, with a large latent group characterized by persistent spells in both states. Analytical second-order information also markedly reduces convergence time under richer heterogeneity structures. Overall, the article makes this class of two-state hazard models operational for applied research and provides new evidence on apprenticeship and temporary contracts in Spain. PB MDPI SN 2225-1146 (electrónico) YR 2026 FD 2026 LK https://hdl.handle.net/10272/28264 UL https://hdl.handle.net/10272/28264 LA eng NO Congregado, E., Troncoso-Ponce, D., Rubino, N., & Morales-Kirioukhina, A. (2026). Estimation of Two-States Proportional Hazard Rates Models with Unobserved Heterogeneity. Econometrics, 14(2), 22. https://doi.org/10.3390/econometrics14020022 DS Repositorio Institucional de la Universidad de Huelva RD 14 jul 2026