Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

RE: st: comparing coefficients


From   John Stymans <johnstymans@hotmail.be>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   RE: st: comparing coefficients
Date   Wed, 9 Jan 2013 14:02:51 +0100

Dear David,

nothing actually, I was just wondering how to do this. Furthermore I have only 200 obs. (100 for each gender). And I also wanted to see differences for other variables as well.Consequently it would be handy if I could just compare all coefficients (including the categorical var.). 

Best,

John

----------------------------------------
> Date: Wed, 9 Jan 2013 07:07:40 -0500
> Subject: Re: st: comparing coefficients
> From: dchoaglin@gmail.com
> To: statalist@hsphsun2.harvard.edu
>
> John,
>
> What's wrong with including both genders in a single model and
> expanding the list of predictors to include gender and the interaction
> of gender with each of the current predictors?
>
> David Hoaglin
>
> On Wed, Jan 9, 2013 at 4:30 AM, John Stymans <johnstymans@hotmail.be> wrote:
> > Dear Statalist Users,
> > I have a problem when comparing coefficients across groups.
> > I am using Stata 12.
> > I first run an ordered logit model for two groups (males and females).
> >
> > ologit y1 i.education age income class household country if gender=0, or store(step1a)
> > ologit y1 i.education age income class household country if gender=1, or store(step1b)
> > goal is to compare across gender the effect of education which is a categorical variable with 3 values, hence the use of i..
> >
> > when I use suest:
> >
> > suest step1a step1b
> >
> > test [step1a _y1]i.education=[step1b_y1]i.education
> >
> > the command does not work. I am however able to split education in three values an add two of them to the regression (omitting educationlow);
> >
> > ologit y1 educationmedium educationhigh age income class household country if gender=0, or store(step1a)
> > ologit y1 educationmedium educationhigh age income class household country if gender=1, or store(step1b)
> > and than run suest:
> >
> > suest step1a step1b
> >
> > test [step1a _y1]loweducation=[step1b_y1]loweducation
> >
> > Yet I am unable to compare the difference in significance of education across gender in general. Does anyone know how to solve this issue?
> >
> > Many thanks in advance and best regards,
> >
> > John
> *
> * For searches and help try:
> * http://www.stata.com/help.cgi?search
> * http://www.stata.com/support/faqs/resources/statalist-faq/
> * http://www.ats.ucla.edu/stat/stata/ 		 	   		  
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index