Home   >   User Resources   >   Online Help   >   apaRegression.Betas.kFold
 

 

Function index Version 3.0.0

apaRegression.Betas.kFold(X, Y, B, k, IsAveragedOtherwiseShowFolds, FoldingType)

Excel=apaRegression.Betas.kFold(X, Y, B, k, IsAveragedOtherwiseShowFolds, FoldingType)

Result

Applies given regression betas to k-folded data. The betas are not necessarily estimated from the data.

Syntax

X: rows x columns matrix of data. Each column containing a variable.

Y: rows x 1 of data

B: 1 x c vector of regression betas (not necessarily estimated from X and Y; can be any estimator)

k: number of folds to perform on the data. When averaged results are chosen, k can be a rows x 1 vector of k values.

IsAveragedOtherwiseShowFolds: show results averaged over all folds, otherwise results per fold

FoldingType: optional; folding type: 1 = standard k-fold, 2 = time series rolling k-fold, 3 = time series cumulative k-fold; default: 1