Description Usage Arguments Value Author(s) See Also Examples
Variable selection for prediction purposes using Random Forest. See rfThresh
for complete documentation.
1 2 3 4 5 6 7 8 9 |
object |
an object returned from |
importance |
what importance measure should be used? Either "permutation" or "gini." |
nfor.pred |
number of forests to grow |
nmj |
a contant used for setting the threshold for variable selection. Higher values indicate a less stringent threshold. |
outfile |
The file location where the rfPred object should be stored. Defaults to storing it in rfPred.file in the default directory. |
named.file |
What should the rfPred object be named when saved? Defaults to "rfPredResults". |
... |
other arguments passed to |
varselect.pred |
The variables selected for Prediction (sorted) |
err.interp |
The error at each stage of the stepwise variable inclusion. |
mean.jump |
The threshold for variable inclusion. |
stepwise.error |
The OOB error rate at each iteration of the stepwise procedure. |
num.varselect.pred |
The number of variables selected for prediction. |
comput.time |
Computation time of the procedure. |
model |
The final model, either a |
Robin Genuer, Jean-Michel Poggi and Christine Tuleau-Malot, with modifications by Dustin Fife
1 2 3 4 5 6 7 8 | ## Not run: data(iris);
data = iris;
formula = as.formula("Species ~ Sepal.Length + Sepal.Width + Petal.Length + Petal.Width")
thresh = rfThresh(formula, data=iris, nruns=2, importance="permutation");
interp = rfInterp(thresh, importance="permutation");
predic = rfPred(interp, importance="gini")
predic
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.