Learn R Programming

FRESA.CAD (version 3.3.0)

filteredFit: A generic fit method with a filtered step for feature selection

Description

Sequential application of feature selection method followed by a fitting algorithm

Usage

filteredFit(formula = formula, 
	            data=NULL,
	            filtermethod=univariate_Wilcoxon,
	            fitmethod=e1071::svm,
	            filtermethod.control=list(pvalue=0.10,limit=0.1),
	            ...
				)

Arguments

formula

the base formula to extract the outcome

data

the data to be used for training the KNN method

filtermethod

the method for feature selection

fitmethod

the fit function to be used

filtermethod.control

the set of parameters required by the feature selection function

...

parameters for the fitting function

Value

fit

The fitted model

filter

The output of the feature selection function

selectedfeatures

The character vector with all the selected features

usedFeatures

The set of features used for training

parameters

The parameters passed to the fitting method

asFactor

Indicates if the fitting was to a factor

classLen

The number of possible outcomes