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:
clear
use http://www.stata-press.com/data/r8/hbp
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:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/