Dear community,
I am working with Performance measurements. Here is a Repex of an issue I am facing. Some time series in my data pool are generating NA for Burke ratio, Jensen ratio, etc. I am missing something here but I do not know if it is about using the package or about the data. So if anyone with some R or Finance knowledge, please share your ideas and experience.
Regards,
jm
library(quantmod)
library(PerformanceAnalytics)
getSymbols.yahoo(
Symbols = 'DXQLX',
env = .GlobalEnv,
periodicity = "monthly",
return.class = 'xts'
)
mylogreturn = CalculateReturns(
prices = DXQLX$DXQLX.Adjusted,
method = 'log'
)
table.Stats(
mylogreturn
)
SharpeRatio.annualized(
R = mylogreturn,
Rf = 0.0,
scale = 12,
geometric = TRUE
)
SharpeRatio.annualized(
R = mylogreturn,
Rf = 0.0,
scale = 12,
geometric = FALSE
)
AdjustedSharpeRatio(
R = mylogreturn,
Rf = 0.0,
scale = 12
)
AdjustedSharpeRatio(
R = mylogreturn,
Rf = 0.0,
scale = 12,
geometric = FALSE
)
BurkeRatio(
R = mylogreturn,
Rf = 0.0,
modified = FALSE
)