Learn R Programming

fPortfolio (version 4023.84)

backtest-constructors: Specification of backtesting portfolios

Description

Functions to set specifications for portfolio backtesting.

The functions are:

setWindowsFunSets Windows function,
setWindowsParamsSets additional parameters for rolling windows function,
setWindowsHorizonSets Windows horizon,
setStrategyFunSets the portfolio Strategy function,
setStrategyParamsSets additional parameters for Strategy function,
setSmootherFunSets the Smoother function,
setSmootherParamsSets additional parameters for Smoother function,
setSmootherLambdaSets the smoothing parameter Lambda,
setSmootherDoubleSmoothingSets setting for double smoothing,
setSmootherInitialWeightsSets the initial weights to used in the smoothing,
setSmootherSkipSets the number of skipped months.

Usage

setWindowsFun(backtest) <- value
setWindowsParams(backtest) <- value
setWindowsHorizon(backtest) <- value

setStrategyFun(backtest) <- value setStrategyParams(backtest) <- value

setSmootherFun(backtest) <- value setSmootherParams(backtest) <- value setSmootherLambda(backtest) <- value setSmootherDoubleSmoothing(backtest) <- value setSmootherInitialWeights(backtest) <- value setSmootherSkip(backtest) <- value

Arguments

backtest

an S4 object of class fPFOLIOBACKTEST, the specification to be modified, by default the default of the function portfolioBacktest().

value

a value for that component of backtest to be set. Note for setting Params value is a list.

Details

The function portfolioBacktest() allows to set the values for the specification structure from scratch.

To modify individual settings one can use the set functions.

References

W\"urtz, D., Chalabi, Y., Chen W., Ellis A. (2009); Portfolio Optimization with R/Rmetrics, Rmetrics eBook, Rmetrics Association and Finance Online, Zurich.