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
Problems trying to estimate a dose response function (doseresponse2)Hi all. I have a panel dataset with socio-economic and political information on Brazilian municipali…
-xtset panel time-: What does the time variable do?I don't understand what the time variable does in -xtset panel time-. I first thought that it incorp…
Power analysis for conjoint survey experiments. (forced choice)Hello, I am planning a conjoint survey experiment and would like to perform some power calculations…
Two-way graph using "Separate" and "Collapse"Hi all, I am trying to graph the mean of net transfer per household by age and the foreigner dummy. …
Aggregating monthly time series data into a yearly time series, and calculating the product of probabilityHello all, I would like to calculate the product of probabilities of annual coup risk based on the…
Subscribe to:
Post Comments (Atom)
0 Response to Marginsplot with no constant - for Treatment Effect only and not Outcome value Y
Post a Comment