Skip to content
Prev 325609 / 398503 Next

how to get growth rate of a (time series) data?

On Wed, Jun 19, 2013 at 6:24 AM, R. Michael Weylandt
<michael.weylandt at gmail.com> wrote:
But note that TTR::ROC uses continuous, not discrete, compounding by default.

So you need:
ROC(test$Y, n=1, type="discrete")

Best,
--
Joshua Ulrich  |  about.me/joshuaulrich
FOSS Trading  |  www.fosstrading.com