A health production model with endogenous retirement.