Dear Stata community,
Greetings!!!
I wish to plot the margins graphs as shown above, where the dismissal probability of the CEO is based on performance and is classified by CEO's gender. The paper that plot this graph wrote that" dismissal probabilities for male and female CEOs at various levels of performance along with confidence intervals at the 95% level. "
They use STATA procedures MARGINS and MARGINSPLOT, XDIMENSION
I also wish to plot the similar graph after the probit regression:
probit dismissal gender2 market_adj_return size mtb roa lev i.fyear , robust
gender2( 1 for female, 0 for male)
The details of the data is as follows.
Listed 100 out of 20877 observations
Use the count() option to list more
. dataex dismissal gvkey fyear gender2 market_adj_return size mtb roa lev
----------------------- copy starting from the next line -----------------------
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float dismissal double(gvkey fyear) float(gender2 market_adj_return size) double mtb float(roa lev) 0 1004 1994 0 -.1115879 6.054003 1.036697268486023 .06153626 .34766895 0 1004 1995 0 -.1115879 6.081867 1.270964503288269 .07824212 .33729205 0 1004 1996 0 -.1115879 6.272092 1.4956810474395752 .08248173 .2815732 0 1004 1997 0 .1840363 6.508112 1.588649868965149 .10354197 .3448392 0 1004 1998 0 -.25111836 6.588418 1.2337775230407715 .12292776 .32839185 0 1004 1999 0 -.29372108 6.607998 .9692534804344177 .11137278 .343288 0 1004 2000 0 .02679992 6.553725 .9741299748420715 .05954942 .3288069 0 1004 2001 0 -.1818572 6.565545 1.033450961112976 -.16212218 .4329418 0 1004 2002 0 -.615626 6.531783 .7462071776390076 -.01105996 .4471935 0 1004 2003 0 1.1187978 6.564267 .9853305816650391 .024150843 .4411467 0 1004 2004 0 .6642304 6.596095 1.2592716217041016 .0541756 .40959525 0 1004 2005 0 .49115565 6.886347 1.443957805633545 .073126905 .4172828 0 1004 2006 0 .3395766 6.973199 1.6480021476745605 .11755912 .3802463 0 1004 2007 0 -.01009117 7.216717 1.0985877513885498 .11107188 .4640117 0 1013 1993 0 -.1115879 5.634983 3.8087351322174072 .16788906 .004923421 0 1013 1994 0 -.1115879 5.813187 4.129223346710205 .18935475 .003025425 0 1013 1995 0 -.1115879 6.398733 4.322932243347168 .1361742 .00079995 0 1013 1996 0 -.1115879 6.644785 5.990737438201904 .17380734 .01456435 0 1013 1997 0 -.1426665 6.841939 4.921441555023193 .1747949 .004981751 0 1013 1998 0 -.41724825 7.170571 2.6825149059295654 .1723614 .1820449 0 1013 1999 0 1.0632617 7.422092 4.535259246826172 .0819657 .035664663 0 1013 2000 0 .7828149 8.286647 4.413288593292236 .4399194 .015214525 0 1013 2001 0 -.7972423 7.823926 1.6841621398925781 -.9404329 .00247616 0 1013 2002 0 -.6628551 7.042461 1.464226484298706 -.3321972 .034928165 0 1013 2003 0 .616491 7.167732 2.1143975257873535 -.06052895 .394112 0 1013 2004 0 -.15016897 7.2641 1.7919760942459106 .029409707 .3777841 0 1013 2005 0 .11789845 7.336286 1.8202117681503296 .06827362 .340913 0 1013 2006 0 -.19003387 7.384859 1.4809060096740723 .01551446 .3071725 0 1013 2007 0 -.01009117 7.475793 1.651189923286438 .07201949 .2764799 0 1013 2008 0 -.01009117 7.560601 .8628537058830261 -.003331598 .4026751 0 1034 1993 0 -.1115879 6.04785 1.2209725379943848 .04965241 .4110433 0 1034 1994 0 -.1115879 6.384044 1.3857775926589966 .02077769 .585136 0 1034 1995 0 -.1115879 6.453393 1.5194822549819946 .08441796 .55565363 0 1034 1996 0 -.1115879 6.419029 1.1669187545776367 .0019856312 .58123666 0 1034 1997 0 .3921379 6.448678 1.4532246589660645 .07222576 .50842696 0 1034 1998 0 .5243657 6.812274 1.719011664390564 .07242864 .6175523 1 1034 1999 0 -.13467294 7.056405 1.4512773752212524 .07985066 .6099526 0 1034 2000 1 .4229167 7.38426 1.5508438348770142 .07432464 .3744413 0 1034 2001 1 -.403376 7.779052 1.075498104095459 .005715462 .51676655 0 1034 2002 1 -.5538713 7.739326 .8137339353561401 -.0543701 .4626393 0 1034 2003 1 .6942932 7.753309 .9525114297866821 .032520518 .41403225 0 1034 2004 1 -.1587384 7.602822 .9885081052780151 -.08133775 .4331532 0 1034 2005 1 .6934933 7.392268 1.3728126287460327 .022543047 .3079191 0 1034 2006 0 -.1587634 6.832211 1.3093074560165405 .13406037 0 0 1034 2007 0 -.01009117 7.160974 1.0962331295013428 .02213148 .29081538 0 1045 1993 0 -.1115879 9.869206 1.0814239978790283 .04258512 .6917055 0 1045 1994 0 -.1115879 9.877452 1.0236413478851318 .062814325 .705921 0 1045 1995 0 -.1115879 9.881038 1.0810339450836182 .05583964 .6442124 0 1045 1996 0 -.1115879 9.928034 1.0784687995910645 .11465093 .4428609 0 1045 1997 0 .3465681 9.948222 1.182021141052246 .11508486 .3765117 0 1045 1998 0 -.08598328 10.012477 1.0623779296875 .12769583 .3496148 0 1045 1999 0 .11831325 10.101273 1.050398588180542 .064905226 .4170518 0 1045 2000 0 .28009546 10.17401 .8625860810279846 .08450006 .3960584 0 1045 2001 0 -.4410488 10.399433 .8917516469955444 -.0897963 .6024083 1 1045 2002 0 -.7141437 10.317813 1.002418041229248 -.12056035 .9322957 0 1045 2003 0 .9520299 10.286366 1.0688915252685547 -.020627344 .9967086 0 1045 2004 0 -.16453135 10.267193 1.0815229415893555 .0038230286 1.0422577 0 1045 2005 0 1.0200458 10.291976 1.1878329515457153 .003254789 1.1118257 0 1045 2006 0 .3497829 10.28004 1.2512894868850708 .04326643 1.047403 0 1045 2007 0 -.01009117 10.260147 1.0294723510742188 .04963075 .8074498 0 1045 2008 0 -.01009117 10.133607 1.234811782836914 -.05223436 1.3658688 0 1055 1993 0 -.1115879 6.786896 1.1703211069107056 -.1347467 .3224505 0 1055 1994 0 -.1115879 6.91336 1.0984442234039307 .064867444 .4234446 0 1055 1995 0 -.1115879 6.929029 1.2341294288635254 -.12848446 .5892567 0 1055 1996 1 -.1115879 6.722698 1.315493106842041 -.458788 1.0710229 0 1056 1999 0 .8935067 5.107254 2.5626771450042725 .12210076 .22747675 0 1056 2000 0 1.505715 5.516275 5.746443271636963 .09650714 .06720682 0 1056 2001 0 -.4818059 5.737385 2.197136402130127 .11783002 .04966586 0 1056 2002 0 -.3482031 5.763513 1.5260605812072754 -.03157333 .05603293 0 1056 2003 0 .10357788 5.800958 1.6148862838745117 .04954993 .04731797 0 1056 2004 0 .8348701 6.312444 2.131951332092285 .06139926 .02299599 0 1056 2005 0 -.4218559 6.379867 1.2808034420013428 .05036543 .010353042 0 1056 2006 0 .37919465 6.458373 1.6051514148712158 .05035563 .008389296 0 1072 2000 0 -.5519342 7.541735 1.798487663269043 .44643885 .01685846 0 1072 2001 0 .2124176 7.43343 2.288264751434326 -.010715897 .01026385 0 1072 2002 0 -.575265 7.438685 1.0592132806777954 .008078151 .002333323 0 1072 2003 0 .8414536 7.419307 1.885503888130188 -.09673256 .0000187513 0 1072 2004 0 -.2587047 7.432335 1.402099847793579 .0599811 0 0 1072 2005 0 .4506256 7.423693 1.9551734924316406 .0761965 0 0 1072 2006 0 -.1430301 7.549365 1.5128440856933594 .12045626 0 0 1072 2007 0 -.01009117 7.654006 1.1716411113739014 .09567215 0 0 1076 1998 0 -.0820925 5.606441 1.492779016494751 .14650922 .22646655 0 1076 1999 0 .6971517 5.763333 1.4883836507797241 .16333133 .26859808 0 1076 2000 0 -.31804085 5.941168 1.1311793327331543 .14750288 .3134047 0 1076 2001 0 .12481005 5.98443 1.2129452228546143 .068683974 .24388736 0 1076 2002 0 .2963683 6.181357 1.2978657484054565 .1612185 .18120234 0 1076 2003 0 .3714336 6.319494 1.5119553804397583 .12087515 .17486145 0 1076 2004 0 .904069 6.551492 2.1047940254211426 .18540657 .1987288 0 1076 2005 0 -.09044576 6.755204 1.6347019672393799 .09387722 .29363957 0 1076 2006 0 .41646835 6.88715 1.8752686977386475 .15611276 .15646775 0 1076 2007 0 -.01009117 7.014973 1.2476928234100342 .11312676 .1973776 0 1078 1993 0 -.1115879 8.94749 3.6792585849761963 .25507048 .23590197 0 1078 1994 0 -.1115879 9.050609 3.5929996967315674 .24981864 .20516513 0 1078 1995 0 -.1115879 9.149802 4.007338523864746 .25251132 .24959424 0 1078 1996 0 -.1115879 9.317004 4.085660457611084 .24348864 .31777745 0 1078 1997 0 .2016038 9.397738 4.723796844482422 .24708574 .3462125 0 1078 1998 0 .4067264 9.4892 6.1803388595581055 .25195244 .3473414 0 1078 1999 0 -.25792217 9.579905 4.367053985595703 .23503226 .2305824 0 1078 2000 0 .3484119 9.634513 5.338753700256348 .25337046 .1536352 0 1078 2001 0 .1601383 10.056055 4.33122444152832 .06123348 .4458473 end
:
0 Response to Margin Graphs after probit
Post a Comment