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

 From "Kieran McCaul" To 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: Kieran.McCaul@uwa.edu.au
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: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Salah Mahmud
Sent: Wednesday, 26 August 2009 10:19 PM
To: statalist@hsphsun2.harvard.edu
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(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/
```