Closed chenandrewy closed 3 months ago
Zhang 2006 applies the abs(prc)<5
and tempage < 12
filter before doing any analysis
so we should only run the fastxtile
on stocks that satisfy those filters. That should address this gap.
Fixed in https://github.com/OpenSourceAP/CrossSection/commit/6e8632115395b9c72fb6b587a03c3644b61f9a34.
Dropping obs with abs(prc)<5) | tempage <12
and computing quantiles on the remaining stocks leads to more reasonable numbers:
There's weird stuff in
FirmAgeMom.do
There seem to be no observations of FirmAgeMom in 2021 July.
Seems to be due to this snippet
is the
&
supposed to be|
? That looks weird.Anyway, the bottom quintile of age is very small in 2021, at around 11-12:
and that seems to be interacting with the filter above and causing the gap.