Hi, I'm currently writing my bachelor thesis. I have divided my data into 5 portfolios depending on the leverage change. I'm replicating a paper in which it says the following:

In my case, the i goes from 1 to 5. My data is as following:
Because in this example it's the same month and year, stocks with the same change5 are in the same portfolio. Therefore, they have the same excess return. What they get is the following table:

I tried to get these results for the 3-factor by:
But doing this I only get 1 alpha and also portfolio 1 is omitted:

Does anyone know how to perform this?
Thanks
In my case, the i goes from 1 to 5. My data is as following:
Code:
* Example generated by -dataex-. For more info, type help dataex clear input long gvkey float(time excess_ri_port rf mktrf smb hml mom change5) 2410 425 -5.696706 7.05 1 -.06 -.63 3.4 3 2411 425 -7.957327 7.05 1 -.06 -.63 3.4 4 4439 425 -5.310014 7.05 1 -.06 -.63 3.4 1 8020 425 -5.310014 7.05 1 -.06 -.63 3.4 1 8546 425 -5.696706 7.05 1 -.06 -.63 3.4 3 11217 425 -5.310014 7.05 1 -.06 -.63 3.4 1 11749 425 -5.696706 7.05 1 -.06 -.63 3.4 3 12368 425 -4.475912 7.05 1 -.06 -.63 3.4 5 12383 425 -5.310014 7.05 1 -.06 -.63 3.4 1 12384 425 -7.957327 7.05 1 -.06 -.63 3.4 4 13145 425 -5.800953 7.05 1 -.06 -.63 3.4 2 13556 425 -7.957327 7.05 1 -.06 -.63 3.4 4 13683 425 -5.696706 7.05 1 -.06 -.63 3.4 3 14447 425 -5.800953 7.05 1 -.06 -.63 3.4 2 14620 425 -5.800953 7.05 1 -.06 -.63 3.4 2 14894 425 -5.696706 7.05 1 -.06 -.63 3.4 3 15319 425 -5.800953 7.05 1 -.06 -.63 3.4 2 15334 425 -5.696706 7.05 1 -.06 -.63 3.4 3 15444 425 -5.310014 7.05 1 -.06 -.63 3.4 1 16267 425 -5.696706 7.05 1 -.06 -.63 3.4 3 16299 425 -5.310014 7.05 1 -.06 -.63 3.4 1 end format %tm time
Because in this example it's the same month and year, stocks with the same change5 are in the same portfolio. Therefore, they have the same excess return. What they get is the following table:
I tried to get these results for the 3-factor by:
Code:
xtset time
Code:
xtreg excess_ri_port mktrf smb hml i.change5
Does anyone know how to perform this?
Thanks
Comment