Hi Stata people,
I want to look at a squared interaction term of a variable of interest Z in my FE regression. I would like to see how this relationship varies for different plausible values of Z for different categories in my data (sectors of the economy) .
For some sectors I see different relationships between Y and Z when Z is low, medium, and of high value which is interesting for my work.
Two questions:
Let us assume that both interaction terms are significant using testparm.
now want to compare how bpsytol's impact on bmi for different levels of bpsystol for difference races:
This produces a plot (where I set CI to be 99% to induce an insignificant slope to aid my example - at bpsystol is 150):

In my work I would want to focus on a plot such as this, and would interpret it as there is a positive relationship between bpsystol and bmi which is reducing as bpystol increase for both "White" and "Other" but persists further (150 levels of bpsyol). for White but not "Other".
I want to look at a squared interaction term of a variable of interest Z in my FE regression. I would like to see how this relationship varies for different plausible values of Z for different categories in my data (sectors of the economy) .
For some sectors I see different relationships between Y and Z when Z is low, medium, and of high value which is interesting for my work.
Two questions:
- Q1: Is this approach empirically sound? See a MWE using the nhanes2 data below that replicates my approach.
- Q2: When comparing different categories, I want to compare only the results that are significant on the dydx marginsplot. I see publications that use squared interaction terms but then plot the full conditional margins effects but do not look at the dydx/conditional marginal effects or their significance. This seems strange to me. There seems value in looking/interpreting only at ranges of Z that the is a significant relationship with Y (i.e. just focus on the significant margins dydx results) when interpreting results. Am I missing something here? The MWE illustrates.
Code:
webuse nhanes2 *regression to structured in a similar way to my own - just not a panel FE: reg bmi i.race bpsystol race#c.bpsystol race#c.bpsystol#c.bpsystol
now want to compare how bpsytol's impact on bmi for different levels of bpsystol for difference races:
Code:
margins race if inlist(race,1,3),dydx(bpsystol) at(bpsystol=(100(10)150)) marginsplot, level(99)
This produces a plot (where I set CI to be 99% to induce an insignificant slope to aid my example - at bpsystol is 150):
In my work I would want to focus on a plot such as this, and would interpret it as there is a positive relationship between bpsystol and bmi which is reducing as bpystol increase for both "White" and "Other" but persists further (150 levels of bpsyol). for White but not "Other".

Comment