Skip to content
Prev 8430 / 15274 Next

PerformanceAnalytics apply.rolling with NAs

On Fri, 2011-09-02 at 13:55 +0200, Dean Marks wrote:
OK, now we're getting somewhere.

You could apply apply.rolling by column, but this won't  give you
comparable results for the rolling return case.

You could aggregate your returns to some lower-frequency where all the
indices will agree and you only have leading NA's to deal with.

Or, you could see 

?zerofill

since an NA return is equivalent to a zero return (unless your manager
is not reporting to hide losses, but that's a different problem
altogether)

Regards,

  - Brian