Mortality and aging in a heterogeneous population: A stochastic process model with observed and unobserved variables