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
For fractional regression, it is appropriate to rank the dependent variable for the concern that the measure is noisy?Hi, I am using fractional regression, fracreg in Stata, to analyze how city's high school student gr…
Regression rich text file issueHello, I am attempting to transfer the regression to a rich text file. For some reason my regression…
Gini coefficient in a LoopDear all, I need to compute the Gini coefficient over country and over waves. Therefore, I realized …
Marginsplot only some categoriesDear all, I am struggling with a probably easy procedure. I estimate the following command: logit…
xtpdyn marginsDear all, I've encountered a problem when implementing xtpdyn postestimation. Using this example: xt…
Subscribe to:
Post Comments (Atom)
0 Response to Marginal effect and confidence interval of the model with an interaction term
Post a Comment