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: Testing interaction terms when using factor variables


From   Richard Williams <[email protected]>
To   [email protected], [email protected]
Subject   Re: st: Testing interaction terms when using factor variables
Date   Thu, 27 Oct 2011 18:23:53 -0500

At 04:15 PM 10/27/2011, Jeffrey Pitblado wrote:
In Stata 12, Richard can use the new -contrast- command:

. contrast female#(c.year##c.year c.select c.articles c.prestige), overall

The -overall- option specifies that -contrast- combine the tests of the
individually specified terms into an additional "Overall" test at the end of the
Wald table.

Otherwise, Richard can use -testparm- instead of -test-.

    . testparm 1.female#(c.year c.year#c.year c.select c.articles c.prestige)

Excellent! Thanks. I notice that the output of the contrast command includes

Margins      : asbalanced

Is there any reason I would want to override that? I also tried

contrast 1.female#(c.year c.year#c.year c.select c.articles c.prestige), overall asobserved

and it didn't seem to change anything other than saying "Margins: asobserved" rather than "Margins: asbalanced".


-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
HOME:   (574)289-5227
EMAIL:  [email protected]
WWW:    http://www.nd.edu/~rwilliam

*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index