Return.locScaleRob returns the data after passing through a robust location and scale filter.
Examples
# Loading data from PerformanceAnalytics
data(edhec, package = "PerformanceAnalytics")
class(edhec)
#> [1] "xts" "zoo"
# Changing the data colnames
names(edhec) = c("CA", "CTA", "DIS", "EM", "EMN",
"ED", "FIA", "GM", "LS", "MA",
"RV", "SS", "FOF")
# Cleaning the returns time series for manager data
if (suppressMessages(suppressWarnings(
requireNamespace("RobStatTM", quietly = TRUE)))) {
# CRAN requires conditional execution
outRob <- suppressMessages(Return.locScaleRob(edhec$CA))
}