get_polymod_population: Return the polymod-average population age distribution in 5y

View source: R/get_polymod_population.R

get_polymod_populationR Documentation

Return the polymod-average population age distribution in 5y

Description

returns the polymod-average population age distribution in 5y increments (weight country population distributions by number of participants). Note that we don't want to weight by survey age distributions for this, since the total number of participants represents the sampling. It uses the participant data from the polymod survey as well as the age specific population data from socialmixr R package to return the age specific average population of different, countries weighted by the number of participants from those countries who participated in the polymod survey.

Usage

get_polymod_population(
  countries = c("Belgium", "Finland", "Germany", "Italy", "Luxembourg", "Netherlands",
    "Poland", "United Kingdom")
)

Arguments

countries

countries to extract data from. Default is to get: Belgium, Finland, Germany, Italy, Luxembourg, Netherlands, Poland, and United Kingdom.

Value

A conmat_population data frame with two columns: lower.age.limit and population

Examples

get_polymod_population()
get_polymod_population("Belgium")
get_polymod_population("United Kingdom")
get_polymod_population("Italy")

njtierney/conmat documentation built on April 17, 2025, 10:27 p.m.