Eco 572: Research methods in Demography
Period Life Table Construction
Here's how to reproduce the calculations in Box 3.1 of Preston et a. (p. 49) using Stata as a calculator. (Stata
has a
ltable
command for cohort life tables.)
The input data are counts of the midyear population and the number of deaths at ages 0,14,59,...,8084,85+
for Austrian males in 1992, available in the course website.
. infile age N D using http://data.princeton.edu/eco572/datasets/prestonb31.dat
(19 observations read)
We need the width of the age intervals.
. gen n =
age[_n+1]age // leaves width of last interval missing
(1 missing value generated)
The calculations are pretty straitforward. The numbers below refer to the numbered steps in the textbook. To
ensure full precision I use doubles; floats are good for only about 7 digits and this can be a problem with large
numbers such as
n
L
x
.
1.
We compute death rates dividing events by exposure.
. gen m = D/N
2.
Next we need the time lived by deaths (
n
a
x
). Preston et al. borrow these values for ages 5 to 75 from Keyfitz
and Flieger (1971), p.21. I saved those values in a Stata file so I can easily merge them here (after sorting by
age)
. sort age
. merge age using http://data.princeton.edu/eco572/datasets/kfnax
This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
This is the end of the preview.
Sign up
to
access the rest of the document.
 Spring '06
 Rodriguez
 Demography, real change

Click to edit the document details