Usage
## S3 method for class 'default':
VSURF.interp(x, y, vars, nfor.interp = 25, nsd = 1, ...)## S3 method for class 'formula':
VSURF.interp(formula, data, ..., na.action = na.fail)
## S3 method for class 'default':
VSURF.interp.parallel(x, y, vars, nfor.interp = 25,
nsd = 1, clusterType = "PSOCK", ncores = detectCores() - 1, ...)
## S3 method for class 'formula':
VSURF.interp.parallel(formula, data, ...,
na.action = na.fail)
Arguments
data
a data frame containing the variables in the model.
na.action
A function to specify the action to be taken if NAs are
found. (NOTE: If given, this argument must be named, and as
randomForest
it is only used with the formula-type call.)
x,formula
A data frame or a matrix of predictors, the columns
represent the variables. Or a formula describing the model to be fitted.
y
A response vector (must be a factor for classification problems and
numeric for regression ones).
vars
A vector of variable indices. Typically, indices of variables
selected by thresholding step (see value varselect.thres
of
VSURF.thres
function). nfor.interp
Number of forests grown.
nsd
Number of times the standard deviation of the minimum value of
err.interp
is multiplied. See details below.
clusterType
Type of the multiple cores cluster used to run VSURF in
parallel. Must be chosen among "PSOCK" (default: SOCKET cluster available
locally on all OS), "FORK" (local too, only available for Linux and Mac OS)
and "MPI" (can be used on a remote cluster, which
ncores
Number of cores to use. Default is set to the number of cores
detected by R minus 1.
...
others parameters to be passed on to the randomForest
function (see ?randomForest for further information)