Hi,
For an analysis, I want to compare the coefficients between the deciles. I use a fixed effect regression with the "reghdfe" command in stata. My fixed effect are dum_date and dum_firm and I have arranged the deciles in column decile_10. The code I use for my regression is:
The code above is for the overall regression and I used to following code for a regression for decile 1 (as an example):
I know I cannot use the suest code since it does not work with the "reghdfe" command. Furthermore, I saw on statelist some forms who talked about using the interaction effect in order to compare the coefficients, however, I am not quite there yet.
I would appreciate your help!
Kind regards,
Fabien Keyzer
For an analysis, I want to compare the coefficients between the deciles. I use a fixed effect regression with the "reghdfe" command in stata. My fixed effect are dum_date and dum_firm and I have arranged the deciles in column decile_10. The code I use for my regression is:
Code:
reghdfe RETX_sd_21days Robinhood E_vol Asset_growth Long_term_debt Size, absorb(dum_date dum_TICKER) vce(cluster dum_date dum_TICKER)
Code:
reghdfe deciles_RETX_sd_21days deciles_Robinhood deciles_E_vol deciles_Asset_growth deciles_Long_term_debt deciles_Size if decile_10 ==10, absorb(dum_date dum_TICKER) vce(cluster dum_date dum_TICKER)
Code:
* Example generated by -dataex-. For more info, type help dataex clear input long date str9 TICKER float Robin_user double RETX_sd_21days float(decile_10 E_vol Asset_growth Long_term_debt Size) 21306 "A" 590 .024704669955529814 8 .004914847 .04267474 .2168521 10.130047 21307 "A" 586.4737 .02496701844494897 8 .004914847 .04267474 .2168521 10.130047 21308 "A" 587.4583 .025027515252421216 8 .004914847 .04267474 .2168521 10.130047 21311 "A" 585.9 .02490161882111235 8 .004914847 .04267474 .2168521 10.130047 21312 "A" 577.125 .025622605385144024 8 .004914847 .04267474 .2168521 10.130047 21313 "A" 581.2083 .025625072442753808 8 .004914847 .04267474 .2168521 10.130047 21314 "A" 583.0417 .025548991795362092 8 .004914847 .04267474 .2168521 10.130047 21315 "A" 595.625 .02545921972439692 8 .004914847 .04267474 .2168521 10.130047 21318 "A" 661.9167 .025375674797751033 8 .004914847 .04267474 .2168521 10.130047 21319 "A" 910.1667 .025373823067314984 8 .004914847 .04267474 .2168521 10.130047 21320 "A" 1186.4584 .012971544203729387 8 .004914847 .04267474 .2168521 10.130047 21321 "A" 1225.4375 .012755792037015906 8 .004914847 .04267474 .2168521 10.130047 21322 "A" 1146.5294 .012332868317013777 8 .004914847 .04267474 .2168521 10.130047 21325 "A" 1082.5834 .013091860825230424 8 .004914847 .04267474 .2168521 10.130047 21326 "A" 1001.3333 .012486383993162544 8 .004914847 .04267474 .2168521 10.130047 21327 "A" 939.4583 .01237881906090757 8 .004914847 .04267474 .2168521 10.130047 21328 "A" 921.7059 .01236852128382127 8 .004914847 .04267474 .2168521 10.130047 21329 "A" 905.875 .013410349475215385 8 .004914847 .04267474 .2168521 10.130047 21333 "A" 904 .013439015279697474 8 .004914847 .04267474 .2168521 10.130047 21334 "A" 909.6 .013001905520743713 8 .004914847 .04267474 .2168521 10.130047 21335 "A" 905.8333 .012621857295848906 8 .004914847 .04267474 .2168521 10.130047 21336 "A" 895.2083 .012523655122617675 8 .004914847 .04267474 .2168521 10.130047 21339 "A" 882.4583 .012168525698544297 8 .004914847 .04267474 .2168521 10.130047 21340 "A" 875.1667 .011937756780267936 8 .004914847 .04267474 .2168521 10.130047 21341 "A" 862.0833 .012134404918243163 8 .004914847 .04267474 .2168521 10.130047 21342 "A" 828.2083 .01061856243625401 8 .004914847 .04267474 .2168521 10.130047 21343 "A" 813.375 .011131506125058354 8 .004914847 .04267474 .2168521 10.130047 21346 "A" 796.7826 .011176947470294222 8 .004914847 .04267474 .2168521 10.130047 21347 "A" 779.7083 .011295382294606197 8 .004914847 .04267474 .2168521 10.130047 21348 "A" 776.0417 .01153289893858018 8 .004914847 .04267474 .2168521 10.130047 21349 "A" 767.9583 .01153200235438123 8 .004914847 .04267474 .2168521 10.130047 21350 "A" 758 .011653067059779672 8 .004914847 .04267474 .2168521 10.130047 21353 "A" 750.4583 .011772842312328433 8 .004914847 .04267474 .2168521 10.130047 21354 "A" 750.5833 .011237425044435619 8 .004914847 .04267474 .2168521 10.130047 21355 "A" 752.625 .010960555351483168 8 .004914847 .04267474 .2168521 10.130047 21356 "A" 752.2917 .010684257958031636 8 .004914847 .04267474 .2168521 10.130047 21357 "A" 747.2917 .010676820606914777 8 .004914847 .04267474 .2168521 10.130047 21360 "A" 742.2174 .011185137263403989 8 .004914847 .04267474 .2168521 10.130047 21361 "A" 739.375 .00990601093982708 8 .004914847 .04267474 .2168521 10.130047 21362 "A" 739.125 .009871991730532175 8 .004914847 .04267474 .2168521 10.130047 21363 "A" 765.25 .010000063895312309 8 .004914847 .04267474 .2168521 10.130047 21364 "A" 817.6667 .010961502868554667 8 .004914847 .04267474 .2168521 10.130047 21367 "A" 838.25 .011670944449788922 8 .004914847 .04267474 .2168521 10.130047 21368 "A" 840.75 .012258936231664424 8 .004914847 .04267474 .2168521 10.130047 21370 "A" 834.375 .012179594288376101 8 .004914847 .04267474 .2168521 10.130047 21371 "A" 826.625 .012135405427447432 8 .004914847 .04267474 .2168521 10.130047 21374 "A" 819.0417 .01224513724268452 8 .004914847 .04267474 .2168521 10.130047 21375 "A" 811.375 .012438193392232616 8 .004914847 .04267474 .2168521 10.130047 21376 "A" 807.8333 .012479095720895696 8 .004914847 .04267474 .2168521 10.130047 21377 "A" 800.7083 .01233595111914223 8 .004914847 .04267474 .2168521 10.130047 21378 "A" 791.2917 .012402939763123942 8 .004914847 .04267474 .2168521 10.130047 21381 "A" 791.3333 .012478065908349892 8 .004914847 .04267474 .2168521 10.130047 21382 "A" 785.875 .01233477422095114 8 .004914847 .04267474 .2168521 10.130047 21383 "A" 777.25 .014297394053910848 8 .004914847 .04267474 .2168521 10.130047 21384 "A" 769.75 .014469021234493664 8 .004914847 .04267474 .2168521 10.130047 21385 "A" 761.0833 .014297753285104114 8 .004914847 .04267474 .2168521 10.130047 21388 "A" 757 .014271448963207489 8 .004914847 .04267474 .2168521 10.130047 21389 "A" 752.3333 .01432832617966895 8 .004914847 .04267474 .2168521 10.130047 21390 "A" 741.7083 .014065552309581333 8 .004914847 .04267474 .2168521 10.130047 21391 "A" 733.087 .013494042048833756 8 .004914847 .04267474 .2168521 10.130047 21392 "A" 725.1667 .013254176921549187 8 .004914847 .04267474 .2168521 10.130047 21395 "A" 719.625 .012833193685748324 8 .004914847 .04267474 .2168521 10.130047 21396 "A" 712.625 .012327518573474392 8 .004914847 .04267474 .2168521 10.130047 21397 "A" 712.2083 .011458601390482364 8 .004914847 .04267474 .2168521 10.130047 21398 "A" 713.2917 .010802028275263269 8 .004914847 .04267474 .2168521 10.130047 21399 "A" 715.1667 .010794200241529796 8 .004914847 .04267474 .2168521 10.130047 21402 "A" 714.2917 .010796396703504855 8 .004914847 .04267474 .2168521 10.130047 21403 "A" 707.1667 .010575760454405767 8 .004914847 .04267474 .2168521 10.130047 21404 "A" 699.7826 .009939910726452516 8 .004914847 .04267474 .2168521 10.130047 21406 "A" 723.92 .009743962426818655 8 .004914847 .04267474 .2168521 10.130047 21409 "A" 760.5833 .009681166005387647 8 .004914847 .04267474 .2168521 10.130047 21410 "A" 794.2083 .009610244348013781 8 .004914847 .04267474 .2168521 10.130047 21411 "A" 843.9583 .010259044237580056 8 .004914847 .04267474 .2168521 10.130047 21412 "A" 789.5 .007498114760397694 8 .004914847 .04267474 .2168521 10.130047 21413 "A" 765.875 .007215992326041391 8 .004914847 .04267474 .2168521 10.130047 21416 "A" 754.4583 .0064096497229258935 8 .004914847 .04267474 .2168521 10.130047 21417 "A" 752.375 .006385461347471412 8 .004914847 .04267474 .2168521 10.130047 21418 "A" 743.0833 .0075833596737493285 8 .004914847 .04267474 .2168521 10.130047 21419 "A" 732.4167 .00772817923294989 8 .004914847 .04267474 .2168521 10.130047 21420 "A" 719.6667 .00833255412334665 8 .004914847 .04267474 .2168521 10.130047 21423 "A" 714.625 .0083555016791896 8 .004914847 .04267474 .2168521 10.130047 21424 "A" 713.1667 .00839080976977848 8 .004914847 .04267474 .2168521 10.130047 21425 "A" 708.625 .008314352829244233 8 .004914847 .04267474 .2168521 10.130047 21426 "A" 708.3043 .008421647941021607 8 .004914847 .04267474 .2168521 10.130047 21427 "A" 706.5 .008586653345913646 8 .004914847 .04267474 .2168521 10.130047 21431 "A" 699.0833 .00860877523068432 8 .004914847 .04267474 .2168521 10.130047 21432 "A" 695.5833 .008487650903677098 8 .004914847 .04267474 .2168521 10.130047 21433 "A" 691.375 .009804726534148074 8 .004914847 .04267474 .2168521 10.130047 21434 "A" 691 .009911790257500516 8 .004914847 .04267474 .2168521 10.130047 21437 "A" 691.4167 .010337012160953424 8 .004914847 .04267474 .2168521 10.130047 21438 "A" 692.25 .010248501746247796 8 .004914847 .04267474 .2168521 10.130047 21439 "A" 688.3333 .013519025713368245 8 .004914847 .04267474 .2168521 10.130047 21440 "A" 683.0435 .01460767195318382 8 .004914847 .04267474 .2168521 10.130047 21441 "A" 678.5 .014599385812976824 8 .004914847 .04267474 .2168521 10.130047 21444 "A" 682.5 .014645848949743344 8 .004914847 .04267474 .2168521 10.130047 21445 "A" 689.25 .016022547768937433 8 .004914847 .04267474 .2168521 10.130047 21446 "A" 687.875 .01603286970705724 8 .004914847 .04267474 .2168521 10.130047 21447 "A" 688.2174 .016449046264918842 8 .004914847 .04267474 .2168521 10.130047 21448 "A" 687.2609 .015783693242935083 8 .004914847 .04267474 .2168521 10.130047 21451 "A" 688.875 .015784839472585386 8 .004914847 .04267474 .2168521 10.130047 end format %tdCCYY-NN-DD date
I would appreciate your help!
Kind regards,
Fabien Keyzer

Comment