Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

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

Re: st: rate ratios from xtlogit using margins - how?

From   Maarten buis <>
Subject   Re: st: rate ratios from xtlogit using margins - how?
Date   Fri, 17 Dec 2010 13:56:52 +0000 (GMT)

--- On Fri, 17/12/10, SeyiLSHTM wrote:
> I am running an xtlogit model (re) to compare stillbirth
> rates in an intervention (=1) and a control group (=0) with
> clustering. Stata outputs the odds ratio, though I'd rather
> convert this to show the adjusted rates, and an adjusted rate
> ratio or a rate difference (with CIs), as this is more
> intuitive when presenting results to mixed audiences.

The easiest way is probably to look at rates assuming that the
random effect is 0, which is exactly the same as your manual
computation. However, I would let -margins- do those 
computations, by specifying the -predict(pu0)- option, see:
-help margins- and -help xtlogit postestimation-. You can 
also quite easily let -margins compute the rate difference
for categorical variables, by using the -dydx()- option. 

*---------------- begin example ----------------
webuse union, clear
xtlogit union age grade i.not_smsa south##c.year
margins south, predict(pu0)
margins, dydx(south) predict(pu0)
*------------------ end example ----------------
(For more on examples I sent to the Statalist see: )
Hope this helps,

Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen


*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index