Hello,
The past few days I've been struggling with computing annual returns (CRSP). This is the code i used:
However, the firms in my sample have different fiscal year ends.. Although it seems like a common problem when creating annual returns, i cant seem to find any proper solution to take the difference between the calender and fiscalyear into account. I was hoping you could help me out here!
Thanks in advance.
The past few days I've been struggling with computing annual returns (CRSP). This is the code i used:
Code:
gen lnret= ln(1+ret) bys permno year: egen sumlnret= sum(lnret) bys permno year: gen return= exp(sumlnret)-1 bys permno year: gen count=_N
Thanks in advance.