Statalist


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

Re: st: log binomial regression - categorical independent variables


From   Evans Jadotte <[email protected]>
To   [email protected]
Subject   Re: st: log binomial regression - categorical independent variables
Date   Thu, 20 Aug 2009 15:00:33 +0200

Amy Jennings wrote:
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/
Hi,

Maybe what you want is:

xi:glm dependent independent... i.schooling*overweight, family(binomial) link(log) eform

Schooling is assumed to have various categories and stata will keep the first one as reference. You can however control which one is used as a reference group.

Hope this helps,

Evans




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