Dear all,
I sort all stock into quintiles of smoothing and quintiles of dividend yield. Then average the institutional holdings across each of resulting 25 dividend yield-smoothing portfolios.
I know there is no such thing as dys`ij', however is there a way of generating a new variable based on each i and j?
Thanks
I sort all stock into quintiles of smoothing and quintiles of dividend yield. Then average the institutional holdings across each of resulting 25 dividend yield-smoothing portfolios.
Code:
xtile g1 = DIVY, nq(5) xtile g2 = Smooth, nq(5) forvalues i=1(1)5{ forvalues j=1(1)5{ egen dys`ij'=mean(Ins) if g1==`i'&g2==`j' } }
Thanks
Comment