Statalist


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

st: log binomial regression - categorical independent variables


From   Amy Jennings <amyjennings79@hotmail.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: log binomial regression - categorical independent variables
Date   Thu, 20 Aug 2009 11:19:36 +0000

Hi 
 
I am currently using stata to estimate prevalence ratios (or risk ratios as I think stata refers to them) using log binomial regression with the glm function.  I am using the syntax
 
glm dependent independent, family(binomial) link(log) eform
 
this has worked fine but I would now like to add a categorical independent variable with more than two categories, and obtain coefficients for each of the categories, e.g. I am trying to calculate prevalence ratios for childhood overweight compared with normal weight for increasing category of parental education, is it possible to estimate prevalence ratios for children whose parents are educated to school-level or university-level verses those with no education?
 
Many thanks in advance, 
_________________________________________________________________
Windows Live Messenger: Happy 10-Year Anniversary—get free winks and emoticons.
http://clk.atdmt.com/UKM/go/157562755/direct/01/
*
*   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   |   What's new   |   Site index