GetRates {VirtualPop}R Documentation

Retrieves Period Mortality and Fertility Rates from HMD and HFD for a Selected Country and Selected Year

Description

The rates are retrieved from the life tables and fertility tables included in the raw data downloaded from the HMD and HFD.

Usage

GetRates(data, refyear)

Arguments

data

data (the object data_raw, produced by the GetData() function.)

refyear

Reference year, which is the year of period data

Value

A list object with three elements:

ASDR

Age-specific death rates, by sex for reference year

ASFR

Age-specific birth rates by birth order for reference year

ratesM

Matrix of transition rates in format required for mulitstate modelling

The object returned by the function has three attributes:

country

Country

type

Type of data (period data or cohort data)

year

Calendar year for which period death rates are used to complete cohort experience in case of incomplete mortality experience (reference year).

Examples

## Not run: 
# Not run because passwords needed
# Input data: data_raw produced by GetData().
rates <- GetRates(data=data_raw,refyear=2021)

## End(Not run)


[Package VirtualPop version 2.0.2 Index]