Statalist


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

st: RE: modify dstdize to save no of events in the return list


From   "Kieran McCaul" <[email protected]>
To   <[email protected]>
Subject   st: RE: modify dstdize to save no of events in the return list
Date   Thu, 27 Aug 2009 06:22:28 +0800

...

It looks like you have two populations and the output from -dstdize-
gives you the crude rates and the direct standardized rates.  If you
want the total number of events in each population then use -summarize-.

summ events if population==1
local Npop1 = r(sum)
summ events if population==2
local Npop2 = r(sum)


______________________________________________
Kieran McCaul MPH PhD
WA Centre for Health & Ageing (M573)
University of Western Australia
Level 6, Ainslie House
48 Murray St
Perth 6000
Phone: (08) 9224-2701
Fax: (08) 9224 8009
email: [email protected]
http://myprofile.cos.com/mccaul 
http://www.researcherid.com/rid/B-8751-2008
______________________________________________
If you live to be one hundred, you've got it made.
Very few people die past that age - George Burns

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Salah Mahmud
Sent: Wednesday, 26 August 2009 10:19 PM
To: [email protected]
Subject: st: modify dstdize to save no of events in the return list

just wondering if someone knows of an easy way to convince dstdize to
save the number of events (the numerators of the rates) in the return
list.
As it stands, dstdize (*! version 1.5.1  30jul2008) saves the
following matrices:
                 r(se) :  1 x 2
                 r(ub) :  1 x 2
                 r(lb) :  1 x 2
                r(adj) :  1 x 2
              r(crude) :  1 x 2
               r(Nobs) :  1 x 2
r(Nobs) returns the denominator (the population size), but I can't
find the equivalent matrix for the denominators.

Many thanks,
*
*   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/



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