Description Usage Arguments Details Examples
FitnessFunction()
determines the 'fitness' of a given linear fit using either a
function supplied by the user or the Aikake Information Criteria extractAIC
as a default. In either case, the fitness function is designed to specifically take
a linear regression object produced by either lm
or glm
.
1 | FitnessFunction(model, userfunc)
|
model |
The object produced by the built-in R regression function |
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". |
FitnessFunction() returns a single scalar fitness value
Called from within AssessFitness()
1 2 3 4 | \code{\link[GA]{AssessFitness}}
\code{\link{glm}}
\code{\link{lm}}
\code{\link{extractAIC}}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.