A dynamic structural analysis of health and retirement