When trying to produce a marginal effects graph using fixed effects, the output is blank. However, the graph outputs normally when using random effects.
I'm using the command xtreg in Stata 13
The code I'm using is as follows:
xtreg l3.fed c.index1 i.prom i.member c.index1#i.prom#i.member unemp taylor if tin(2003m1,2007m12), robust fe
qui margins, at ( index1=(-7(2)10) prom=(1) member=(0(1)1) )
marginsplot
Thanks,
Ciaran
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float(fed index1) byte(prom member) float(unemp taylor2) 1.26 -4.862256 0 0 5.5 10.0339 1.43 -4.637412 0 0 5.4 9.85203 1.61 -4.3299794 0 0 5.4 9.729603 1.76 -3.857371 0 0 5.5 9.72606 1.93 -3.1923146 0 0 5.4 9.874479 2.16 -2.528809 0 0 5.4 10.102476 2.28 -2.1161697 0 0 5.3 10.3113 2.5 -2.1264076 0 0 5.4 10.410652 2.63 -2.422321 0 0 5.2 10.344034 2.79 -2.789402 0 0 5.2 10.0634 3 -3.0541315 0 0 5.1 9.580303 3.04 -3.2069325 0 0 5 9.144698 3.26 -3.279214 0 0 5 9.06614 3.5 -3.3172114 0 0 4.9 9.528459 3.62 -3.426459 0 0 5 10.21258 3.78 -3.727319 0 0 5 10.6737 4 -4.2829323 0 0 5 10.587162 4.16 -4.927564 0 0 4.9 10.10886 4.29 -5.43826 0 0 4.7 9.51483 4.49 -5.651223 0 0 4.8 9.04732 4.59 -5.639291 0 0 4.7 8.81343 4.79 -5.534456 0 0 4.7 8.88647 4.94 -5.44318 0 0 4.6 9.276002 4.99 -5.369798 0 0 4.6 9.736586 5.24 -5.293112 0 0 4.7 9.95903 5.25 -5.183314 0 0 4.7 9.729707 5.25 -4.976161 0 0 4.5 9.217238 5.25 -4.5987945 0 0 4.4 8.68581 5.25 -4.022349 0 0 4.5 8.344754 5.24 -3.393915 0 0 4.4 8.183996 5.25 -2.904572 0 0 4.6 8.13861 5.26 -2.693101 0 0 4.5 8.148943 5.26 -2.689077 0 0 4.4 8.176438 5.25 -2.769777 0 0 4.5 8.18781 5.25 -2.832228 0 0 4.4 8.138694 5.25 -2.8524585 0 0 4.6 7.940401 5.26 -2.8262496 0 0 4.7 7.49316 5.02 -2.759733 0 0 4.6 6.764609 4.94 -2.7004454 0 0 4.7 5.992017 4.76 -2.706274 0 0 4.7 5.48006 4.49 -2.813053 0 0 4.7 5.427961 4.24 -2.968393 0 0 5 5.613137 3.94 -3.097854 0 0 5 5.70755 2.98 -3.1470525 0 0 4.9 5.4335 2.61 -3.141847 0 0 5.1 4.7146297 2.28 -3.128156 0 0 5 3.52492 1.98 -3.138387 0 0 5.4 1.911398 2 -3.150907 0 0 5.6 .2132826 2.01 -3.130574 0 0 5.8 -1.15716 2 -3.065165 0 0 6.1 -1.915647 1.81 -3.034144 0 0 6.1 -2.2898288 .97 -3.139893 0 0 6.5 -2.63534 .39 -3.437317 0 0 6.8 -3.1979415 .16 -3.7913964 0 0 7.3 -3.783903 .15 -4.0196347 0 0 7.8 -4.08962 .22 -3.98884 0 0 8.3 -3.890103 .18 -3.76305 0 0 8.7 -3.2748196 .15 -3.4556096 0 0 9 -2.41185 .18 -3.167849 0 0 9.4 -1.4597346 .21 -2.953052 0 0 9.5 -.5388495 .16 -2.852487 0 0 9.5 .23997 .16 -2.8752146 0 0 9.6 .8141797 .15 -2.901455 0 0 9.8 1.3143995 .12 -2.779218 0 0 10 1.91954 .12 -2.417195 0 0 9.9 2.731296 .12 -1.9668014 0 0 9.9 3.542495 .11 -1.6401305 0 0 9.8 4.06875 .13 -1.586591 0 0 9.8 4.12812 .16 -1.7048423 0 0 9.9 3.948457 .2 -1.830859 0 0 9.9 3.86006 .2 -1.8367666 0 0 9.6 4.100708 .18 -1.739307 0 0 9.4 4.538094 .18 -1.5913757 0 0 9.4 4.94739 .19 -1.441943 0 0 9.5 5.155175 .19 -1.3242843 0 0 9.5 5.193659 .19 -1.267752 0 0 9.4 5.14646 .19 -1.2874068 0 0 9.8 5.084879 .18 -1.3411458 0 0 9.3 5.030952 .17 -1.372576 0 0 9.1 4.9944 .16 -1.3409238 0 0 9 4.978023 .14 -1.2678924 0 0 9 4.956943 .1 -1.1908042 0 0 9.1 4.89936 .09 -1.1384057 0 0 9 4.800305 .09 -1.1051368 0 0 9.1 4.762114 .07 -1.0768604 0 0 9 4.91395 .1 -1.0422242 0 0 9 5.320832 .08 -1.0010104 0 0 9 5.791198 .07 -.9557867 0 0 8.8 6.06934 .08 -.9089986 0 0 8.6 5.970272 .07 -.8626052 0 0 8.5 5.591881 .08 -.8184457 0 0 8.3 5.10278 .1 -.7794297 0 0 8.3 4.657635 .13 -.7527549 0 0 8.2 4.355351 .14 -.74669 0 0 8.2 4.28089 .16 -.7625216 0 0 8.2 4.46271 .16 -.7736062 0 0 8.2 4.7032537 .16 -.7463186 0 0 8.2 4.74846 .13 -.6668674 0 0 8.1 4.4293666 .14 -.6008005 0 0 7.8 3.917416 .16 -.6334993 0 0 7.8 3.46915 end label values prom Bank_Size label def Bank_Size 0 "Small Bank", modify label values member membership label def membership 0 "Not Sitting on FAC", modify
0 Response to Marginal effects graph blank after using fixed effects
Post a Comment