Cross Validated is a question and answer site for people interested in statistics, machine learning, data analysis, data mining, and data visualization. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've been looking for resources on calculation of life expectancy uising Stata.

Combing Google results so far I've only been able to locate this module:

LXPCT_2: Stata module to calculate multistate life expectancies

Could you point me to any materials, preferably with sample code on this topic?


share|improve this question
Are you aware of the ltable command and the survival analysis capacities, the so-called st commands? Both are part of the "official" Stata. – user5644 Dec 21 '11 at 13:46
@lejohn: Yes, I'm. But the manuals for those commands are not answering my question so far. I was looking for something easier to digest for a novice - tutorial, example code with comments or even book chapter. – radek Dec 21 '11 at 13:54
What kind of data do you have? Individual level data or grouped/aggregated data? – user5644 Dec 21 '11 at 14:34
@lejohn: Starting point will be individual level records from cohort study. Working now on getting age/sex specific mortality rates and person years. – radek Dec 21 '11 at 14:59
How is the data structured, though? The hard part about the st commands is getting the data in the right shape. From there, ltable and other commands are quite intuitive. Also see – Keith Dec 22 '11 at 2:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.