Hi all,
There may be a straightforward answer for this question, but I can't find it anywhere. I am specifying a simple OLS regression of the following form:
Y = alpha + Beta1 * A + Beta2 * A2+ Beta3 * (A - B)2
where A and B are continous variables, and "alpha" and "beta" are model parameters.
In the past I have been creating a new variable z = (A - B)2 in order to run this using the
command. However, I want to plot the marginal effect of A on Y using
, which shouldn't ignore the fact that z is a function of A. In addition, I cannot reorder the terms because I am specifically interested in analysing the Beta3 coefficient.
Any idea of how to go out this problem?
Thanks,
Jack
There may be a straightforward answer for this question, but I can't find it anywhere. I am specifying a simple OLS regression of the following form:
Y = alpha + Beta1 * A + Beta2 * A2+ Beta3 * (A - B)2
where A and B are continous variables, and "alpha" and "beta" are model parameters.
In the past I have been creating a new variable z = (A - B)2 in order to run this using the
Code:
reg
Code:
marginsplot
Any idea of how to go out this problem?
Thanks,
Jack
Comment