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: Marginsplot of endogenous interaction in 2sls model


From   John Antonakis <John.Antonakis@unil.ch>
To   statalist@hsphsun2.harvard.edu
Subject   st: Marginsplot of endogenous interaction in 2sls model
Date   Mon, 04 Mar 2013 22:50:42 +0100

Hi:

Suppose I estimate for endogenous regressors x1 x2 and their interaction x1x2 the following:

ivregress 2sls y (x1 x2 x1x2 = p1 p2 p3)

How could I do a margins plot on this?

I tried:

margins, at(x1 = (0 10) x2 = (1 10) x1x2 (0 100)
marginsplot

But I got four parallel lines.

I also tried to go the factor-variable route:

ivregress 2sls y (c.x1##c.x2 = p1 p2 p3)

But Stata doesn't like endogenous interactions made by factor variables.

Thanks.
J.


--
__________________________________________

John Antonakis
Professor of Organizational Behavior
Director, Ph.D. Program in Management

Faculty of Business and Economics
University of Lausanne
Internef #618
CH-1015 Lausanne-Dorigny
Switzerland
Tel ++41 (0)21 692-3438
Fax ++41 (0)21 692-3305
http://www.hec.unil.ch/people/jantonakis

Associate Editor
The Leadership Quarterly
__________________________________________

*
*   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