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
SGMM - problem with Sargan/Hansen testsI have a question regarding SGMM. I have run the regression 'xtabond2 gdpg lgdpg d pop educ loginv, …
Why are missing values treated as positive infinity in Stata?Up until now, I have never found any practical use for this. In fact, it generally results in confus…
Margins and marginsplot - interaction and obtaining two different graphs by sex ?Dear Statalists, I need your help to find the right command of margins and marginsplot. Here's what…
Problem in detecting influencial cases using cookDear Sir or Madam, I am trying to detect influencial cases using the "cook" approach with regress. …
Joinby function for Ticker and YearHello, I would like to merge MSCI and Compustat data using the following code: For MSCI data: egen y…
Subscribe to:
Post Comments (Atom)
0 Response to Plotting an Interaction
Post a Comment