Dear all,
for my current work, I need to display turning points of my quadratic function. My dependent var Y depends on X, X2 , G and the interaction term X*G
Y= a1X2 + a2X + a3G + a4G*X
For this function, I need to calculate the turning point (Vertex). I am aware of the formula where the turning point for y = ax2 + bx + c is at x = -b/2a. However, I still don't know how/whether to include the coefficient for the interaction term and how to deal with two explanatory variables, nor do I know how to smartly calculate the turning points in Stata. Maybe the "margins" command can be helpful?
I would appreciate any help, in explaining the rationales and also hints for my state code.
I did not provide any details about my dataset because I think it should not be relevant. If I am mistaken here, please let me know. I use Stat 16.
Many thanks in advance
Lars
for my current work, I need to display turning points of my quadratic function. My dependent var Y depends on X, X2 , G and the interaction term X*G
Y= a1X2 + a2X + a3G + a4G*X
For this function, I need to calculate the turning point (Vertex). I am aware of the formula where the turning point for y = ax2 + bx + c is at x = -b/2a. However, I still don't know how/whether to include the coefficient for the interaction term and how to deal with two explanatory variables, nor do I know how to smartly calculate the turning points in Stata. Maybe the "margins" command can be helpful?
I would appreciate any help, in explaining the rationales and also hints for my state code.
I did not provide any details about my dataset because I think it should not be relevant. If I am mistaken here, please let me know. I use Stat 16.
Many thanks in advance
Lars
Comment