Variation in health inequalities according to measures of socioeconomic status and age