apaRandomForest.Regression.PredictionsWithIntervals(Y, X, predictedX, maxDepth, minSamplesSplit, nTrees, minObs, maxObs, minFeatures, maxFeatures)
Excel
=apaRandomForest.Regression.PredictionsWithIntervals(Y, X, predictedX, maxDepth, minSamplesSplit, nTrees, minObs, maxObs, minFeatures, maxFeatures)Result
Returns random forest regression predictions with confidence intervals.
Syntax
Y: r x 1 vector of the dependent variable
X: r x c matrix of predictors
predictedX: m x c matrix of predictors for which to predict
maxDepth: maximum depth of the trees (determines the number of branches)
minSamplesSplit: minimum number of observations required to split a node
nTrees: number of trees in the forest
minObs: minimum number of observations sampled per tree
maxObs: maximum number of observations sampled per tree
minFeatures: minimum number of features sampled per tree
maxFeatures: maximum number of features sampled per tree
