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

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

Re: st: interaction effects vs. interaction coefficients using contrast?

From   Colleen Nugent <>
Subject   Re: st: interaction effects vs. interaction coefficients using contrast?
Date   Mon, 06 Feb 2012 10:29:26 -0500 (EST)

Thank you, Maarten.

Following the example you gave in the Stata tip, if I wanted to know whether black women with a college degree had significantly different odds than white women with a college degree, the best way to do it is to use margins and then lincom to make this comparison?  

Also, I tried the margins syntax you suggest, but I get the error "option over() not allowed r(198)."  I am assuming this is because -over- treats each group as its own subpopulation, but I am already specifying a subpopulation that is my analytic sample using svy, subpop().  Instead I have tried "margins varA#varB, [options]" and "margins varA, at(varB=(1 2 3)) [other options]" and I get slightly different results.  I'm not quite sure which is the best substitute for the over option (or is there some other?).  (I'm brand new to Stata 12, margins, and even the factor variable notation as I used Stata 10 previously.)

Thanks for your help!
*   For searches and help try:

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