apaDecisionTree.Regression.Timeseries.R2(Y, maxDepth, minSamplesSplit, nLags)
Excel
=apaDecisionTree.Regression.Timeseries.R2(Y, maxDepth, minSamplesSplit, nLags)Result
Decision tree regression for time series forecasts: returns the R-squared. The function is non-volatile.
Syntax
Y: r x 1 vector containing the time series
maxDepth: maximum depth of the tree (determines the number of branches)
minSamplesSplit: minimum number of samples required to split a node
nLags: number of lags used as explanatory variables
