Socio-economic status, permanent income, and fertility: A latent-variable approach