Random forest default function
1 2 3 4 5 6 7 8 9 10 11 12 | ## Default S3 method:
randomForest(x, y = NULL, xtest = NULL,
ytest = NULL, ntree = 500, mtry = if (!is.null(y) && !is.factor(y))
max(floor(ncol(x)/3), 1) else floor(sqrt(ncol(x))),
mtry.select.prob = rep(1/ncol(x), ncol(x)), keep.subset.var = NULL,
replace = TRUE, classwt = NULL, cutoff, strata, sampsize = if
(replace) nrow(x) else ceiling(0.632 * nrow(x)), nodesize = if
(!is.null(y) && !is.factor(y)) 5 else 1, maxnodes = NULL,
importance = FALSE, localImp = FALSE, nPerm = 1, proximity,
oob.prox = proximity, norm.votes = TRUE, do.trace = FALSE,
keep.forest = !is.null(y) && is.null(xtest), corr.bias = FALSE,
keep.inbag = FALSE, ...)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.