FitnessFunction: Determine the fitness of the result of a given linear model

Description Usage Arguments Details Examples

Description

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.

Usage

1
FitnessFunction(model, userfunc)

Arguments

model

The object produced by the built-in R regression function lm or glm

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".

Details

FitnessFunction() returns a single scalar fitness value

Called from within AssessFitness()

Examples

1
2
3
4
\code{\link[GA]{AssessFitness}}
\code{\link{glm}}
\code{\link{lm}}
\code{\link{extractAIC}}

stat243proj/GA documentation built on May 15, 2019, 5:03 a.m.