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]

st: marginal effects for polynomial regressions


From   "Bischof, Daniel" <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: marginal effects for polynomial regressions
Date   Wed, 15 Jan 2014 11:11:02 +0000

Hi,

I'm currently running a polynomial regression and I'm trying to calculate marginal effects using the margin command. Therefore my regression model is as follows: 

Y = a + b1*x1+ b2*x1^2 + controls (1)

Putting this into a stata command turns out to be the following:

reg c.x##c.x + controls (2)

Then I calculated the margins by using the following:

margins, over(x) at((means) controls) (3)

And the marginsplot by using: 

marginsplot (4)

Yet, I'm not sure the last two commands will do the deal (3+4), since I'm not sure whether stata is then calculating the derivate of function (1) or just for the very first part of the expression (b1x1). I hope somebody can help me out on this! 

Thank you very much in advance,
		
Daniel
*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index