Notice: On March 31, it was **announced** that Statalist is moving from an email list to a **forum**. The old list will shut down on April 23, and its replacement, **statalist.org** is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

From |
"Lachenbruch, Peter" <Peter.Lachenbruch@oregonstate.edu> |

To |
"'statalist@hsphsun2.harvard.edu'" <statalist@hsphsun2.harvard.edu> |

Subject |
st: RE: RE: calculating standard deviation of age at death from period life tables |

Date |
Mon, 8 Mar 2010 08:57:28 -0800 |

Am I missing something? Doesn't the Greenwood formula give this to you, and isn't it in the ltable command? Tony Peter A. Lachenbruch Department of Public Health Oregon State University Corvallis, OR 97330 Phone: 541-737-3832 FAX: 541-737-4001 -----Original Message----- From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Martin Weiss Sent: Sunday, March 07, 2010 11:30 AM To: statalist@hsphsun2.harvard.edu Subject: st: RE: calculating standard deviation of age at death from period life tables <> Either use frequency weights (first example) or -expand- to the required number: ******* clear* inp int(age number) 0 2000 1 1900 2 600 end list, noo ta age [fw=number] expand number ta age ******* HTH Martin -----Original Message----- From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Johannes Schoder Sent: Sonntag, 7. März 2010 20:25 To: statalist@hsphsun2.harvard.edu Subject: st: calculating standard deviation of age at death from period life tables Dear Statalist users: I want to calculate the standard deviation of age at death from period life tables: So I know how many people died at age x, where x runs from 0,1,2...110: For example, in 2004 in the US people 2000 died at age 0, 1900 at age 1, 600 at age 2, etc. What I think is the right way of calculating is: To generate a new variable that contains 2000 times 0, 1900 times 1, 600 times 2 etc... But I don't know how I can generate this new variable in Stata most efficiently... Thanks a lot for any hint! Regards, Johannes -- Johannes Schoder Socioeconomic Institute University of Zurich Hottingerstr. 10 8032 Zurich Phone: +41 44 634 0612 Fax: +41 44 634 4987 E-mail: johannes.schoder@soi.uzh.ch * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/ * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/ * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/

**Follow-Ups**:**Re: st: RE: RE: calculating standard deviation of age at death from period life tables***From:*Steve Samuels <sjsamuels@gmail.com>

**References**:**st: calculating standard deviation of age at death from period life tables***From:*Johannes Schoder <johannes.schoder@soi.uzh.ch>

**st: RE: calculating standard deviation of age at death from period life tables***From:*"Martin Weiss" <martin.weiss1@gmx.de>

- Prev by Date:
**Re: st: Income distribution** - Next by Date:
**Re: st: correct confidence intervals of -mean- ?** - Previous by thread:
**st: RE: calculating standard deviation of age at death from period life tables** - Next by thread:
**Re: st: RE: RE: calculating standard deviation of age at death from period life tables** - Index(es):