Description Usage Arguments Details Examples
AssessFitness()
determines 'fitness' of an invidivudal based on the quality
of least squares fit of . The default for determining fitness is the Aikake Criteria Index
but the user can supply their own custom-made fitness function that takes a linear
model output object as its input.
1 2 | AssessFitness(individual, response, predictors, user.family = "gaussian",
userfunc = "AIC")
|
individual |
A binary vector of length C = # of potential co-variates in an individual.
Co-variates to be used in the regression of |
response |
The vector of response data (Y) |
predictors |
A data table or data frame of the co-variates (X) |
user.family |
Model family name to be passed to |
userfunc |
A fitness function that operates on a model that could be provided by the user. The default is the Aikake Information Criteria or "AIC". |
AssessFitness() returns a single fitness value.
Called from within Select()
1 2 3 | \code{\link[GA]{FitnessFunction}}
\code{\link{glm}}
\code{\link{extractAIC}}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.