Hello all,
Right now I'm using the margins and marginsplot commands to look at the graphs of two of my functions.
Both serve me to observe the relationship between two dependent variables (HHI2 and c.HHI2#c.HHI2) on two independent variables (FSTS and FATA).
This is the result:
Code:
eg FSTS_5 c.HHI2 c.HHI2#c.HHI2 emp xad FSTS i.fyear i.naicsh2, robust Linear regression Number of obs = 2,153 F(31, 2121) = 298.99 Prob > F = 0.0000 R-squared = 0.3360 Root MSE = 244.71 ------------------------------------------------------------------------------ | Robust FSTS_5 | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- HHI2 | 5.748962 5.958279 0.96 0.335 -5.935718 17.43364 | c.HHI2#| c.HHI2 | -6.141813 2.916205 -2.11 0.035 -11.86073 -.4228923 | emp | .0175882 .0280968 0.63 0.531 -.0375119 .0726883 xad | -.0046756 .0023271 -2.01 0.045 -.0092393 -.000112 FSTS | -.9846829 .0135233 -72.81 0.000 -1.011203 -.9581625 | fyear | 2010 | 28.35477 21.9708 1.29 0.197 -14.73179 71.44133 2011 | 15.00335 17.3051 0.87 0.386 -18.9334 48.94009 2012 | 9.730732 17.83667 0.55 0.585 -25.24845 44.70992 2013 | 10.75918 16.95665 0.63 0.526 -22.49421 44.01258 2014 | -120.2575 138.6513 -0.87 0.386 -392.1641 151.6492 | naicsh2 | 21 | 14.1921 8.22762 1.72 0.085 -1.942946 30.32715 23 | 1131.067 921.8457 1.23 0.220 -676.7488 2938.883 31 | 18.74618 6.566223 2.85 0.004 5.869268 31.62308 32 | 9.011241 4.928855 1.83 0.068 -.654653 18.67714 33 | 20.72985 12.44844 1.67 0.096 -3.682577 45.14228 42 | 12.48527 6.227395 2.00 0.045 .272827 24.69771 44 | -9.355896 18.03097 -0.52 0.604 -44.71612 26.00433 45 | 26.66661 29.08853 0.92 0.359 -30.37842 83.71163 48 | 4.820748 5.842496 0.83 0.409 -6.636873 16.27837 49 | -3.108557 9.183999 -0.34 0.735 -21.11914 14.90203 51 | 14.96792 6.146632 2.44 0.015 2.913862 27.02198 52 | 6.339456 4.996703 1.27 0.205 -3.459493 16.1384 53 | 8.078983 5.903122 1.37 0.171 -3.497529 19.6555 54 | 6.421113 5.475224 1.17 0.241 -4.316257 17.15848 56 | 5.639013 5.717088 0.99 0.324 -5.57267 16.8507 61 | -3.834198 5.770391 -0.66 0.506 -15.15041 7.482019 62 | 7.551174 8.546145 0.88 0.377 -9.208525 24.31087 71 | 1.529445 9.937071 0.15 0.878 -17.95798 21.01687 72 | 3.060731 10.66999 0.29 0.774 -17.864 23.98546 81 | 3.465968 10.77805 0.32 0.748 -17.67069 24.60263 99 | 13.02404 10.43827 1.25 0.212 -7.446282 33.49436 | _cons | -8.4586 14.86106 -0.57 0.569 -37.60237 20.68517 ------------------------------------------------------------------------------ . margins, at(HHI2=(-2423761(1117477)3163628)) Predictive margins Number of obs = 2,153 Model VCE : Robust Expression : Linear prediction, predict() 1._at : HHI2 = -2423761 2._at : HHI2 = -1306284 3._at : HHI2 = -188807 4._at : HHI2 = 928670 5._at : HHI2 = 2046147 6._at : HHI2 = 3163624 ------------------------------------------------------------------------------ | Delta-method | Margin Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- _at | 1 | -3.61e+13 1.71e+13 -2.11 0.035 -6.97e+13 -2.48e+12 2 | -1.05e+13 4.98e+12 -2.11 0.035 -2.02e+13 -7.22e+11 3 | -2.19e+11 1.04e+11 -2.11 0.035 -4.23e+11 -1.51e+10 4 | -5.30e+12 2.52e+12 -2.11 0.035 -1.02e+13 -3.65e+11 5 | -2.57e+13 1.22e+13 -2.11 0.035 -4.97e+13 -1.77e+12 6 | -6.15e+13 2.92e+13 -2.11 0.035 -1.19e+14 -4.23e+12 ------------------------------------------------------------------------------ . marginsplot, noci Variables that uniquely identify margins: HHI2 . reg FATA_5 c.HHI2 c.HHI2#c.HHI2 ppent xad FATA i.fyear i.naicsh2, robust Linear regression Number of obs = 792 F(27, 763) = . Prob > F = . R-squared = 0.0595 Root MSE = 1.1202 ------------------------------------------------------------------------------ | Robust FATA_5 | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- HHI2 | -.0165341 .0359016 -0.46 0.645 -.0870117 .0539435 | c.HHI2#| c.HHI2 | .0539992 .0216495 2.49 0.013 .0114995 .0964989 | ppent | -7.95e-06 6.37e-06 -1.25 0.212 -.0000204 4.55e-06 xad | .0000378 .000062 0.61 0.542 -.000084 .0001596 FATA | .1343711 .2019304 0.67 0.506 -.2620341 .5307762 | fyear | 2010 | -.2459593 .2176589 -1.13 0.259 -.6732407 .1813222 2011 | -.2333696 .1971044 -1.18 0.237 -.6203008 .1535617 2012 | -.3467578 .2111575 -1.64 0.101 -.7612764 .0677608 2013 | -.3213393 .1899402 -1.69 0.091 -.6942068 .0515282 2014 | -.2064751 .2127234 -0.97 0.332 -.6240677 .2111174 | naicsh2 | 31 | -.0743192 .2753656 -0.27 0.787 -.6148835 .466245 32 | -.1966656 .1492444 -1.32 0.188 -.4896441 .0963129 33 | -.019096 .1576282 -0.12 0.904 -.3285325 .2903405 42 | -.0332439 .1507483 -0.22 0.826 -.3291746 .2626869 44 | -.0854561 .1480687 -0.58 0.564 -.3761265 .2052143 45 | .0687517 .2181854 0.32 0.753 -.3595633 .4970667 48 | .3265516 .6709194 0.49 0.627 -.9905156 1.643619 49 | -.2243832 .3350705 -0.67 0.503 -.8821527 .4333863 51 | -.0832483 .1714566 -0.49 0.627 -.419831 .2533344 52 | -.1686548 .170126 -0.99 0.322 -.5026255 .1653158 53 | .0673404 .210384 0.32 0.749 -.3456597 .4803406 54 | -.0741498 .1613922 -0.46 0.646 -.3909753 .2426756 56 | .5535467 .3152264 1.76 0.079 -.0652673 1.172361 61 | .4271323 .2017446 2.12 0.035 .0310919 .8231727 62 | .5869191 .1646887 3.56 0.000 .2636223 .9102159 71 | -1.044368 1.085733 -0.96 0.336 -3.175747 1.08701 72 | .5358754 .3583476 1.50 0.135 -.1675888 1.23934 99 | .0488011 .1782962 0.27 0.784 -.3012082 .3988104 | _cons | .1388832 .2227807 0.62 0.533 -.2984527 .5762191 ------------------------------------------------------------------------------ . reg FATA_5 c.HHI2 c.HHI2#c.HHI2 ppent xrd FATA i.fyear i.naicsh2, robust Linear regression Number of obs = 1,275 F(27, 1246) = . Prob > F = . R-squared = 0.0961 Root MSE = .8586 ------------------------------------------------------------------------------ | Robust FATA_5 | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- HHI2 | .0195055 .0213385 0.91 0.361 -.0223578 .0613687 | c.HHI2#| c.HHI2 | .0495493 .0145082 3.42 0.001 .0210862 .0780125 | ppent | -3.15e-06 1.82e-06 -1.73 0.085 -6.73e-06 4.31e-07 xrd | .0000206 .0000115 1.80 0.072 -1.84e-06 .0000431 FATA | .1481938 .228158 0.65 0.516 -.2994225 .59581 | fyear | 2010 | -.2366492 .1873272 -1.26 0.207 -.6041608 .1308625 2011 | -.229709 .1766047 -1.30 0.194 -.5761844 .1167663 2012 | -.2354147 .1751642 -1.34 0.179 -.5790641 .1082346 2013 | -.3049266 .1750912 -1.74 0.082 -.6484328 .0385795 2014 | -.2289092 .1882133 -1.22 0.224 -.5981592 .1403407 | naicsh2 | 21 | -.2419569 .8036023 -0.30 0.763 -1.81852 1.334606 23 | .1010646 .1894885 0.53 0.594 -.2706872 .4728164 31 | .0828105 .2214138 0.37 0.708 -.3515745 .5171956 32 | -.0947726 .1571047 -0.60 0.546 -.4029917 .2134464 33 | .0363552 .1754657 0.21 0.836 -.3078856 .3805961 42 | .0456493 .1812305 0.25 0.801 -.3099014 .4011999 44 | .0290768 .1645694 0.18 0.860 -.2937869 .3519405 45 | .0810528 .1920919 0.42 0.673 -.2958066 .4579121 51 | -.0342049 .1866898 -0.18 0.855 -.4004659 .3320561 52 | .8368939 .4879775 1.72 0.087 -.1204544 1.794242 53 | -.0331553 .2014176 -0.16 0.869 -.4283105 .3619999 54 | .1043922 .2340104 0.45 0.656 -.3547056 .56349 56 | 1.284458 .7020799 1.83 0.068 -.0929312 2.661847 62 | .4936155 .2511334 1.97 0.050 .0009244 .9863066 71 | -1.716256 1.933938 -0.89 0.375 -5.510391 2.07788 72 | .4055285 .4908074 0.83 0.409 -.5573716 1.368429 81 | .3935147 3.828506 0.10 0.918 -7.117516 7.904545 99 | 1.312217 .2205636 5.95 0.000 .8794997 1.744934 | _cons | .0099779 .2152347 0.05 0.963 -.4122845 .4322403 ------------------------------------------------------------------------------ . margins, at(HHI2=(-2423761(1117477)3163628)) Predictive margins Number of obs = 1,275 Model VCE : Robust Expression : Linear prediction, predict() 1._at : HHI2 = -2423761 2._at : HHI2 = -1306284 3._at : HHI2 = -188807 4._at : HHI2 = 928670 5._at : HHI2 = 2046147 6._at : HHI2 = 3163624 ------------------------------------------------------------------------------ | Delta-method | Margin Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- _at | 1 | 2.91e+11 8.52e+10 3.42 0.001 1.24e+11 4.58e+11 2 | 8.45e+10 2.48e+10 3.42 0.001 3.60e+10 1.33e+11 3 | 1.77e+09 5.17e+08 3.42 0.001 7.52e+08 2.78e+09 4 | 4.27e+10 1.25e+10 3.42 0.001 1.82e+10 6.73e+10 5 | 2.07e+11 6.07e+10 3.42 0.001 8.83e+10 3.27e+11 6 | 4.96e+11 1.45e+11 3.42 0.001 2.11e+11 7.81e+11 ------------------------------------------------------------------------------ .
Do you happen to know what might be the cause and a possible solution to this problem?
0 Response to Graphs domain-codomain
Post a Comment