Ext_array_sex {BayesMoFo} | R Documentation |
Sample mortality data stratified by gender/sex in the UK
Description
This is a sample data set used for demonstration purposes. They consist of two 3-dimensional arrays, one for number of deaths (dxt_array_sex
) and another for the the corresponding central exposures to risk (Ext_array_sex
).
Usage
data("Ext_array_sex")
data("dxt_array_sex")
Format
An object of class array
of dimension 2 x 111 x 181.
A 3-dimensional data array (dim 1: strata, dim 2: ages, dim 3: years) with 2 strata (males and females), 111 ages, and 181 years:
- Strata
Character. Indicate the gender/sex, labelled as:
"Male"
: ;
"Female"
: ..- Ages
Numeric. Ages at deaths, ranging between 0-109, and 110+.
- Years
Numeric. Years at deaths, spanning years 1841-2021.
Examples
##Load exposure data
data("Ext_array_sex")
str(Ext_array_sex)
head(Ext_array_sex)
#extracting a subset of the data (2 genders, ages 0-100, years 1961-2000)
Ext_array_sex[c("Male","Female"),as.character(0:100),as.character(1961:2000)]
##Load death data
data("dxt_array_sex")
str(dxt_array_sex)
head(dxt_array_sex)
#extracting a subset of the data (2 genders, ages 0-100, years 1961-2000)
dxt_array_sex[c("Male","Female"),as.character(0:100),as.character(1961:2000)]
[Package BayesMoFo version 0.1.0 Index]