saveTree {featurefinder} | R Documentation |
saveTree
Description
Generate a residual tree on a subset of the data specified by the factor level mainfaclev (main factor level)
Usage
saveTree(data, vars, expr, i, outputPath, varname, mainfaclev,
treeGenerationMinBucket, ...)
Arguments
data |
A dataframe containing the residual and some predictors |
vars |
A list of candidate predictors |
expr |
A expression to be modelled by the RPART tree |
i |
An integer corresponding to the factor level |
outputPath |
The output directory |
varname |
A string corresponding to the name of the factor variable being analysed |
mainfaclev |
A level of the mainfac factor |
treeGenerationMinBucket |
Minimum size for tree generation |
... |
and parameters to be passed through |
Value
A tree object
Examples
require(featurefinder)
data(examples)
fit1=saveTree(data,vars,expr,i,outputPath=tempdir(),runname,mainfaclevels[1],
treeGenerationMinBucket)
[Package featurefinder version 1.1 Index]