Dear All,
I have a question, which is not strictly related to the usage of Stata. Suppose I have a model like the following:
y=c+a1x1+a2(x1)^2+error term
I want to study whether a non-linear impact of x1 on y exists. This is not a problem, of course. The problem arises if I suspect that non-linearity emerges because of a second variable, which "mediates" the impact of x on y. Hence I think of estimating the following:
I have a question, which is not strictly related to the usage of Stata. Suppose I have a model like the following:
y=c+a1x1+a2(x1)^2+error term
I want to study whether a non-linear impact of x1 on y exists. This is not a problem, of course. The problem arises if I suspect that non-linearity emerges because of a second variable, which "mediates" the impact of x on y. Hence I think of estimating the following:
y=c+a1x1+a2(x1)^2+b1m1+b2x1*m1+b3(x1)^2*m1+error term
If I rearrange the above term, I get:
y=c+[a1+b2*m1]*x1+[a2+b3*m1]*(x1)^2+error term
m1 is a continuous variable.
Suppose that I want to test the significance of [a2+b3*m1] to see if the quadratic term remains significant. The problem is that m1 is itself a variable. Hence the significance of the tests changes according to its values.
How can I ran the test? I thought of using lincom to get confidence interval too. But how I can deal with the problem of the variable m1 in the test? Should I take the mean of it (I am not sure about this)? Or should I run the test at the min and max values of m1?
Thanks in advance for your help.
If I rearrange the above term, I get:
y=c+[a1+b2*m1]*x1+[a2+b3*m1]*(x1)^2+error term
m1 is a continuous variable.
Suppose that I want to test the significance of [a2+b3*m1] to see if the quadratic term remains significant. The problem is that m1 is itself a variable. Hence the significance of the tests changes according to its values.
How can I ran the test? I thought of using lincom to get confidence interval too. But how I can deal with the problem of the variable m1 in the test? Should I take the mean of it (I am not sure about this)? Or should I run the test at the min and max values of m1?
Thanks in advance for your help.
Comment