Line 15
|
asrol ireccd, gen(ireccd12) by(tempID) stat(first) window(time_avail_m 12) min(1) |
is supposed to fill in ireccd12 with the most recent observation in the past 12 months (for the particular tempID group). But that is not what happens at all.
Instead, it produces a ton of missing values. Here's one example:
I have no idea what is going on here. Of course, asrol doesn't have great documentation for this stat(first) option. We don't use this option anywhere else. Instead, I think we usually do something like:
foreach v of varlist PriceDelay* {
bys permno (time_avail_m): replace `v' = `v'[_n-1] if mi(`v')
}
Line 15
CrossSection/Signals/Code/Predictors/Recomm_ShortInterest.do
Line 15 in d81c696
is supposed to fill in
ireccd12with the most recent observation in the past 12 months (for the particulartempIDgroup). But that is not what happens at all.Instead, it produces a ton of missing values. Here's one example:
I have no idea what is going on here. Of course,
asroldoesn't have great documentation for thisstat(first)option. We don't use this option anywhere else. Instead, I think we usually do something like: