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 at the end of May, and its replacement, statalist.org is already up and running.


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

st: Testing difference between margins


From   John.Antonakis@unil.ch
To   statalist@hsphsun2.harvard.edu
Subject   st: Testing difference between margins
Date   Thu, 19 May 2011 12:09:19 +0200

Suppose I estimate:

xi: reg y x z x2 xz z2

I then predict y at certain levels of the covariates using
"margins", e.g., 

margins, at (x=-2.5 z = -2.5 x2=6.25 x = 6.25 z2=6.25)
margins, at (x=2.5 z = -2.5 x2=6.25 xz = -6.25 z2=6.25)

I would like to test whether the predict from the first
margins command is different from the predict of the second
margins command; of course, I can see whether the confidence
intervals of the predict overlap (but I would like to do a
test).

Is there a way to do this?

Best,
John Antoankis
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index