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
Bootstrapping multi-level logit model with endogenous predictor using control function (Wooldridge): Handling fixed effects in bootstrapDear all I am seeking to implement the control function approach in the context of a multi-level mo…
xtreg with low R-sqHello, I have two dependent variables and 9 independent variables. I ran xtreg command using the f…
Matrix row calculationsHey everybody, once again im asking for your help! Could you please tell me how to multiply the elem…
Problems constructing a Variable indicating the share of male and female in an occupationDear Statalisters, I am currently working on a university project and am struggeling to build a var…
Investor turnoverHi all, First of all, thank you for help in advance. I'm trying to calculate the churn rate (CR) and…
Subscribe to:
Post Comments (Atom)
0 Response to Plotting an Interaction
Post a Comment