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
Regular survival analysis versus competing risk analysisHi, I have a question regarding my analysis setup for research on the exit-route for strategies ado…
Absolute value of residualHello Experts A typical measure for firms’ use of earnings management in the finance literature is b…
How can I calculate a confidence interval around a linear spline that it interacted with another variableI have a large dataset (50m rows) in Stata. One of my independent variables is age, and I'm using li…
How to identify closing triads in a panel data set?Dear Stata experts, I am currently working on a project using panel data with 20.286 observations. …
My fixed effects regression changes if I omit an omitted variableHello all, I run a fixed effects regression in a linear probability model of self rated health and …
Subscribe to:
Post Comments (Atom)
0 Response to Marginal effect and confidence interval of the model with an interaction term
Post a Comment