| summary.varSelRFBoot | R Documentation |
Returns error rate and stability measures of a varSelRFBoot object.
## S3 method for class 'varSelRFBoot'
summary(object, return.model.freqs = FALSE,
return.class.probs = TRUE,
return.var.freqs.b.models = TRUE, ...)
object |
An object of class varSelRFBoot, as returned from
|
return.model.freqs |
If TRUE return a table with the frequencies of the final "models" (sets of selected variables) over all bootstrap replications. |
return.class.probs |
If TRUE return average class probabilities
for each sample based on the out-of-bag probabilites (see
|
return.var.freqs.b.models |
If TRUE return the frequencies of all variables selected from the bootstrap replicates. |
... |
Not used. |
If return.class.probs = TRUE a matrix with the average class
probabilities for each sample based on the out-of-bag probabilites.
Regardless of that setting, print out several summaries:
Summaries related to the "simplified" random forest on the original
data |
Such as the number and identity of the variables selected. |
Summaries related to the error rate estimate |
Such as the .632+ estimate, and some of its components |
Summaries related to the stability (uniqueness) of the results
obtained |
Such as the frequency of the selected variables in the
bootstrap runs, the frequency of the selected variables in the
boostrap runs that are also among the variables selected from the
complete run, the overlap of the bootstrap forests with the forest
from the original data set (see |
Ramon Diaz-Uriarte rdiaz02@gmail.com
Breiman, L. (2001) Random forests. Machine Learning, 45, 5–32.
Diaz-Uriarte, R. , Alvarez de Andres, S. (2006) Gene selection and classification of microarray data using random forest. BMC Bioinformatics, 7, \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1186/1471-2105-7-3")}
Efron, B. & Tibshirani, R. J. (1997) Improvements on cross-validation: the .632+ bootstrap method. J. American Statistical Association, 92, 548–560.
randomForest,
varSelRF,
varSelRFBoot,
plot.varSelRFBoot,
## Not run:
## This is a small example, but can take some time.
x <- matrix(rnorm(25 * 30), ncol = 30)
x[1:10, 1:2] <- x[1:10, 1:2] + 2
cl <- factor(c(rep("A", 10), rep("B", 15)))
rf.vs1 <- varSelRF(x, cl, ntree = 200, ntreeIterat = 100,
vars.drop.frac = 0.2)
rf.vsb <- varSelRFBoot(x, cl,
bootnumber = 10,
usingCluster = FALSE,
srf = rf.vs1)
rf.vsb
summary(rf.vsb)
plot(rf.vsb)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.