Danish live births and deaths

Share:

Description

Monthly live births and deaths in Denmark from January 1901 to March 2013.

Format

A data frame with 1356 observations on the following 4 variables.

year

a numeric vector giving the month

month

a numeric vector giving the year

births

a numeric vector. The number of births for the given month and year

dead

a numeric vector. The number of deaths for the given month and year

Source

Data were obtained from the StatBank from Danmarks Statistik, see http://www.statbank.dk.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data(bdstat)

plot(bdstat$year + bdstat$month/13, bdstat$birth, type="l")


# Create table of births
# Remove year 2013 as it is incomplete
btable <- xtabs(births ~ year + month, data=bdstat, subset=(year<2013))

# Compute yearly birth frequencies per month
btable.freq <- prop.table(btable, margin=1)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.