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]

st: comparing predicted means within levels of a two category variable


From   Andriene Simone Grant <granta@email.arizona.edu>
To   statalist@hsphsun2.harvard.edu
Subject   st: comparing predicted means within levels of a two category variable
Date   Mon, 20 May 2013 15:37:15 -0700

Hello Statalisters,

I am interested in determining predicted mean values of a y variable
after adjustment for a two-category variable, race, and another
predictor, similar to ancova. I have therefore run a regression model
and the margins command, as follows:

regress y i.race predictor2
margins race

I am writing to confirm what the next step would be to determine
whether the predicted means for race=0 & race=1 are significantly
different from each other. Is this what contrast r.race would be
doing?

Thanks. I hope I can get a quick confirmation.

Andriene
PhD student
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index