Home · Command reference

RainbowStats™ · Regression commands

RANDOM_FOREST

Fit a random-forest regression.

Syntax

RANDOM_FOREST(list[,namedOptions...])

Returned object

RandomForestOperator

Example

m=RANDOM_FOREST(LIST(LOGDIFF(INDPRO),LOGDIFF(PAYEMS),LOGDIFF(CPIAUCSL)))
EXTRACT(m,"slideshow")

Interpretation and limitations

The first argument is LIST(Y,X1,...). Optional settings retain the existing named-argument parser: ARG(name,value), ARG_LIST, or NAME:value. Settings are validated by the existing model class. Inspect out-of-sample behavior and avoid interpreting predictive importance as causal evidence.

Available extracts

Save the command result in a variable, then use EXTRACT(result, "key"). Availability can depend on the input form and fitted model.

In indexed patterns such as beta:n, replace n with the required index.

Learn more

Detailed guide and examples