Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: Direct standardization


From   "Newson, Roger B" <r.newson@imperial.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Direct standardization
Date   Thu, 18 May 2006 16:31:30 +0100

Typically, in Stata, we do direct standardization by weighting each observation with a sampling probability weight equal to the ratio between the frequency of its stratum in the standard population and the frequency of its stratum in the sample. Sampling probabilitiy weights are pweights (see online help for -weight- ), and cause Stata to use Huber variances (also known as robust variances).

I hope this helps.

Roger


Roger Newson
Lecturer in Medical Statistics
POSTAL ADDRESS:
Respiratory Epidemiology and Public Health Group
National Heart and Lung Institute at Imperial College London
St Mary's Campus
Norfolk Place
London W2 1PG
STREET ADDRESS:
Respiratory Epidemiology and Public Health Group
National Heart and Lung Institute at Imperial College London
47 Praed Street
Paddington
London W1 1NR
TELEPHONE: (+44) 020 7594 0939
FAX: (+44) 020 7594 0942
EMAIL: r.newson@imperial.ac.uk
WEBSITE: http://www.imperial.ac.uk/nhli/r.newson/
Opinions expressed are those of the author, not of the institution.


-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Claus Dethlefsen / Aalborg Sygehus
Sent: 18 May 2006 14:19
To: statalist@hsphsun2.harvard.edu
Subject: st: Direct standardization

Dear list

I would like to combine strate with dstdize to arrive at age-adjusted incidence rates for strata defined by sex and smoking.

My data are organized to work with strate - something like:

stset ageout, enter(time agein) failure(case==1) id(id)
stsplit agegr, at(0 1 5(5)100)
strate sex agegr smoking, per(1000) 

But I would like to get the age-adjusted rates instead using eg. a European standard population in a direct standardization. I know that the standard populations are not detailed into strata of smoking and sex, but I would like at least to adjust these by age.

How can I adjust the output from strate using dstdize?

I hope someone can help,

Claus
________________________________
Claus Dethlefsen, MSc, PhD
Biostatistiker ved Kardiovaskulært Forskningscenter

Forskningens Hus
Aalborg Sygehus 
Sdr. Skovvej 15
9000 Aalborg
Tlf:   9932 6863
email: aas.claus.dethlefsen@nja.dk 
 

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index