I am trying to plot the effect on Value of an interaction between Trend and Experience, at high vs. low levels of Trend.
(I would like to see the effect of value of Experience in high vs. low trend levels)
First, I ran the regression of value on Trend, Experience, Interaction, and my controls,
Second, I used the following code:
margins, at(Trend=(2.09 4.53) Experience =(0 .75 1.5 2.25))
In the Parentheses, I added for Trend the average +/- standard-deviation; and for Experience few observations to generate scenarios for the graph.
To obtain the Graph, I then added the following code:
marginsplot, xdimension(Experience) recastci(rarea)
This resulted in two lines that are perfectly parallel with their areas that are perfectly similar. I have repeated this exercise using Excel and the results are not the same. Specifically, the slope of the two lines (at 2.09 and 4.53) are not the same.
Can anyone advise what could be the problem in the code? Thanks.
Related Posts with Plotting an Interaction
Cross-level interactions vs. separated regressions for categories of the interaction variable in multilevel modelsDear all, I want to investigate which child in a sibling group takes over the care of a parent. The…
Reshapes wide to long without wave identifierHi I have a follow-up tricky reshape that I would like some help with please. I would like to resha…
Using racial/ethnic demographics as the independent variables in multivariate linear regression?Hello! I am conducting multivariate linear regression using -regress- of Google trend interest (a 10…
splitting Chinese addresses?Dear All, Suppose that I have the following addresses (in Chinese), Code: * Example generated by -d…
Concentration Index (industries within one sector per country)Hello, I have a set of industries within one sector and I would like to calculate the degree of con…
Subscribe to:
Post Comments (Atom)
0 Response to Plotting an Interaction
Post a Comment