Learn R Programming

PerformanceAnalytics (version 0.9.7.1)

Return.clean: clean returns in a time series to to provide more robust risk estimates

Description

A function that provides access to multiple methods for cleaning outliers from return data.

Usage

Return.clean(R, method = "boudt", ...)

Arguments

R
a vector, matrix, data frame, timeSeries or zoo object of asset returns
method
currently only one method is supported, "boudt", which applies the function clean.boudt to R
...
parameters passed into the underlying cleaning function

Value

  • zoo object with the same dimensions as R, containing data cleaned with the method selected.

Details

This is a wrapper for offering multiple data cleaning methods for data objects containing returns.

The primary value of data cleaning lies in creating a more robust and stable estimation of the distribution generating the large majority of the return data. The increased robustness and stability of the estimated moments using cleaned data should be used for portfolio construction. If an investor wishes to have a more conservative risk estimate, cleaning may not be indicated for risk monitoring.

In actual practice, it is probably best to back-test the results of both cleaned and uncleaned series to see what works best when forecasting risk with the particular combination of assets under consideration.

In this version, only one method is supported. See clean.boudt for more details.

See Also

clean.boudt

Examples

Run this code
data(managers)
Return.clean(managers)
chart.BarVaR(managers[,1,drop=FALSE], show.clean=TRUE, clean="boudt", lwd=2, methods="ModifiedVaR")

Run the code above in your browser using DataLab