Hi there,
I am running a household fixed effects model on some panel data to estimate the effect of 'length of exposure (in months) to the intervention' on a bunch of outcome indicators, and I want to use marginsplot to see how the 'treatment effect' varies over months of exposure. My model (which includes a second order team) is as follows:
xtreg outcome exposure exposure_sq, fe cluster(ea)
In order to get the figure that I want (i.e. treatment effect only and not the fitted values of the outcome variable), I would need to exclude the constant that is estimated in the regression but I am unable to do this.
Instead of using marginsplot, I did consider using the twoway function approach where I use:
twoway function y=_b[exposure]*x + _b[exposure_sq]*x^2
This works very well - but I can't plot the confidence intervals - hence the need for marginsplot.
Does anybody have a suggestion? I would be very grateful.
Thanks very much!
Related Posts with Marginsplot with no constant - for Treatment Effect only and not Outcome value Y
Dynamic GMM: select the appropriate lag length for instrumented variablesHello, I am running a one step dynamic gmm model of this kind. My data consists of a N=185 and T=27.…
time series prediction assignmentBackground: As a researcher at the financial economics research department of the Federal Reserve Ba…
How to cluster standard errors?Dear all, I am currently doing my master thesis and I would really appreciate some help, since I am…
Panel data, want to see the regression results for two time periods and country setsHi, I have a panel dataset of with a variable country, year, university, sat score. (Similar variabl…
Increase in the number of observations after using RESHAPE commandDear community, My original data are in long shape. When I reshape long to wide there is an increas…
Subscribe to:
Post Comments (Atom)
0 Response to Marginsplot with no constant - for Treatment Effect only and not Outcome value Y
Post a Comment