Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: calculating SMRs, examples?


From   "Raoul Reulen" <[email protected]>
To   [email protected]
Subject   Re: st: calculating SMRs, examples?
Date   Wed, 14 Sep 2005 17:41:31 +0200

Yes, very helpful, thanks. I am still struggling with getting the external data right. After I've used stset and stsplit I need to calculated the expected number of deaths in each strata. I find it difficult to do that.

Raoul



From: "Svend Juul" <[email protected]>
Reply-To: [email protected]
To: <[email protected]>
Subject: Re: st: calculating SMRs, examples?
Date: Wed, 14 Sep 2005 14:27:39 +0200

Raoul asked:
Are there any good websites or books out there that explain in detail
how to calculate a standardized mortality ratio (SMR) with poisson
regression using external rates? I find that the STATA manuals do not
contain a lot of information regarding this topic, any suggestions?
----

I wrote, among other things:

You may proceed from here to -poisson-; it requires the expected number
of deaths:
    . gen edeaths = pyrs*mrate
    . poisson _d exposure(edeaths) , irr
----

- and that was wrong. The -poisson- command should be:
    . poisson _d , exposure(edeaths)

To obtain the SMR, use -lincom- after -poisson-:
    . lincom _cons , irr

I hope this was not too confusing.

Svend

__________________________________________

Svend Juul
Institut for Folkesundhed, Afdeling for Epidemiologi
(Institute of Public Health, Department of Epidemiology)
Vennelyst Boulevard 6
DK-8000  Aarhus C, Denmark
Phone: +45 8942 6090
Home:  +45 8693 7796
Email: [email protected]
__________________________________________

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index