1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gafs.R
\name{varImp.gafs}
\alias{varImp.gafs}
\alias{varImp.safs}
\title{Variable importances for GAs and SAs}
\usage{
\method{varImp}{gafs}(
object,
metric = object$control$metric["external"],
maximize = object$control$maximize["external"],
...
)
}
\arguments{
\item{object}{an \code{\link{safs}} or \code{\link{gafs}} object}
\item{metric}{a metric to compute importance (see Details below)}
\item{maximize}{are larger values of the metric better?}
\item{\dots}{not currently uses}
}
\value{
a data frame where the rownames are the predictor names and the
column is the average t-statistic
}
\description{
Variable importance scores for \code{\link{safs}} and \code{\link{gafs}}
objects.
}
\details{
A crude measure of importance is computed for thee two search procedures. At
the end of a search process, the difference in the fitness values is
computed for models with and without each feature (based on the search
history). If a predictor has at least two subsets that include and did not
include the predictor, a t-statistic is computed (otherwise a value of
\code{NA} is assigned to the predictor).
This computation is done separately for each resample and the t-statistics
are averaged (\code{NA} values are ignored) and this average is reported as
the importance. If the fitness value should be minimized, the negative value
of the t-statistic is used in the average.
As such, the importance score reflects the standardized increase in fitness
that occurs when the predict is included in the subset. Values near zero (or
negative) indicate that the predictor may not be important to the model.
}
\seealso{
\code{\link{safs}}, \code{\link{gafs}}
}
\author{
Max Kuhn
}
|