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

st: dstdize

From   "Colin M Fischbacher" <>
To   <>
Subject   st: dstdize
Date   Fri, 15 Aug 2003 16:28:30 +0100

I asked about using an external reference population for -dstdize- when
the age distribution is different for males and females (as is often the
case for real populations).

Jeff Pitblado helpfully pointed out off list that this can simply be
achieved using -if- to get results for each sex in turn. In my example:

gen pop = 1
dstdize hbp pop age_group if sex != 1, by(race) using(test_stan) print
dstdize hbp pop age_group if sex != 2, by(race) using(test_stan) print

Dr Colin Fischbacher
Edinburgh EH8 9AG

*   For searches and help try:

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