Dear Statalisters,
I am new to the forum and I have tried to find a solution for my problem. I could not find it but please let me know if another forum already covers it.
To put things simply, let's say I have the following regression:
xtreg y_it X1_it + X2_i c.X1l##c.X2 with X1 and X2 being continuous variables.
If I run a panel data regression with fixed effects on i, the coefficient related to X2 wipes out.
Yet, if I want to look at the marginal effect of X1_it on y_it it should be: b1 + b2X2_i.
That said, after running my panel data regression and calling:
margins, dydx(X1) at(X2=(min(intervall)max)) - of course replacing for relevant numbers and variables in my regression.
Yet, it gives me a "(not estimable output)" - see image below. If I run the regression with random effects, the command works.
Thus, I believe it has to do with the fact that the X2 variable is time invariant although theoretically I do not understand why I can't get the marginal effects for different levels of variable X2.
Thank you in advance for your help.
Kind regards,
Antoine
Related Posts with Marginal effects using dydx for panel data regression using country fixed effects and a time-invariant variable in the interaction term.
putdocx phtestHi Statalist I am trying to export the proportional hazards statistics to a word document (that als…
Summary statistics over two groupsI want to have the mean and sd of a variable separated by two grouping variables, like below but in …
Pooled regression with interaction term for time?Dear All! I have panel data (time: 2 periods; N: 2,093) and because the Breusch and Pagan Lagrange …
Question on treatment evaluation and demographic characteristics table.Hi everyone, I am working on an assignment for a STATA beginner course, based on the journal articl…
Commands to get the graph between cumulative distribution function of years of schooling and birth orderDear stat specialists, I am working with cross-sectional data obtained from Pakistan Bureau of stati…
Subscribe to:
Post Comments (Atom)
0 Response to Marginal effects using dydx for panel data regression using country fixed effects and a time-invariant variable in the interaction term.
Post a Comment