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, statalist.org is already up and running.


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

Re: st: FW: odds ratios/risk ratio: variables and levels of variable


From   Maarten Buis <maartenlbuis@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: FW: odds ratios/risk ratio: variables and levels of variable
Date   Sat, 31 Dec 2011 14:47:41 +0100

On Sat, Dec 31, 2011 at 1:29 AM, Anthony Petrosino
<anthony_petrosino@hotmail.com> wrote:
> I have a data set in which I would like to examine the odds ratios and risk ratios of the variable (e.g., race/ethnicity) on an outcome of crime (yes/no outcome) and also examine them for different levels of the variable (white/black/Hispanic/etc.).
>
> Also, I'm not sure logistic/logit regression is what we want to use. We are not attempting to build a model, per se, to explain the outcome, but looking at the risk/odds for being in various subgroups. Is there a cross-tab function that allows one to do this?

You can use -logit- for getting the different odds and -poisson- or
-regress. for getting the different risks. The trick is to exclude the
constant and the baseline categories. Consider the example below. The
odds of being a union member is .355 union members for every
non-member if one is divorced/widowed and without college degree. The
odds of being a union member is .246 union members for every
non-member if one is married and without college degree. The
equivalent risks of being a union member are .262 and .197.

*--------------- begin example -----------------
sysuse nlsw88, clear
gen marst = married + 2*never_married
label define marst 0 "divorced/widowed" ///
                   1 "married"          ///
                   2 "never married"

logit   union ibn.marst#i.collgrad, or  nocons
poisson union ibn.marst#i.collgrad, irr nocons
*----------------- end example ------------------
(For more on examples I sent to the Statalist see:
http://www.maartenbuis.nl/example_faq )

Hope this helps,
Maarten

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


http://www.maartenbuis.nl
--------------------------

*
*   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/


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