Dear all,
I am reading a paper that analyses a panel data model with an interaction term. I wonder how to calculate the marginal effect and confidence interval for the model and present the results in graphs, especially how to calculate the confidence interval. Hope someone could kindly help with the syntax.
The equation below is estimated with fixed-effect OLS: Array
And the marginal effect of ineq on y is: Array
All the variables are continuous variables. When k/h is 0, the marginal effect of ineq equals to a2.
The graph below shows the line of marginal effect with its confidence interval, along with a histogram of k/h (physical-human capital ratio): Array
It can be seen from the graph that when k/h is 0, the marginal effect of ineq is significantly negative.
How could I calculate the confidence interval and generate a graph like this in Stata? What should the syntax be like?
Many thanks,
Anna
Related Posts with Marginal effect and confidence interval of the model with an interaction term
Same id but do not get matched (merge)Dear all, I have a problem that I do not understand why it is occuring. I want to merge two data fil…
Installing gtools package on a remote computer (with no admin access)Hello, I am working on a Remote Stata Server (OS: Windows Server 2016 Standard) with Stata/SE 15.1. …
Coding questionI am running into a wall on applying a predicted class of a state (all 50 states have one of four pr…
how to simplify the syntax? Code: keep if pvalueInter<.1 & pvalueMed1<.1 & pvalueMed2<.1 & pvalueMed3<.…
Missing values when generating lagged variable in panel dataContext: I'm using Stata 16.1 on Window 10. I have unbalanced panel data with 52 variables and 953 o…
Subscribe to:
Post Comments (Atom)
0 Response to Marginal effect and confidence interval of the model with an interaction term
Post a Comment