Closed codetalker7 closed 1 year ago
Are we not taking the percentage by multiplying by 100? What do other languages do?
Are we not taking the percentage by multiplying by 100? What do other languages do?
TimeSeries.jl doesn't multiply by 100: https://juliastats.org/TimeSeries.jl/stable/apply/#percentchange-1
Also, won't it be fine to leave it to the users to multiply by 100?
TimeSeries.jl doesn't multiply by 100: https://juliastats.org/TimeSeries.jl/stable/apply/#percentchange-1
Also, won't it be fine to leave it to the users to multiply by 100?
Yes, makes sense.
This fix addresses https://github.com/xKDR/TSx.jl/issues/105. We have changed the formula for
pctchange
to use an absolute value in the denominator. Also modified the test forpctchange
to reflect this change.