Return.locScaleRob: Robust Filter for Time Series Returns

Description Usage Arguments Value Author(s) Examples

View source: R/Return.locScaleRob.R

Description

Return.locScaleRob returns the data after passing through a robust location and scale filter.

Usage

1
Return.locScaleRob(R, alpha.robust = 0.05, normal.efficiency = 0.99, ...)

Arguments

R

Data of returns for assets or portfolios.

alpha.robust

Tuning parameter for the robust filter.

normal.efficiency

Normal efficiency for robust filter.

...

any other passthrough parameters

Value

A vector of the cleaned data.

Author(s)

Xin Chen, chenx26@uw.edu

Anthony-Alexander Christidis, anthony.christidis@stat.ubc.ca

Examples

1
2
3
4
5
6
7
8
9
# Loading data from PerformanceAnalytics
data(edhec, package = "PerformanceAnalytics")
class(edhec)
# 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
outRob <- Return.locScaleRob(edhec$CA)

PerformanceAnalytics documentation built on Feb. 6, 2020, 5:11 p.m.