evaluation: support function: evaluation()

Description Usage Arguments Examples

Description

This function evaluate the fitness value of chromosomes.

Usage

1
2
evaluation(X, Y, currentGeneration, popNum = 100, reg = "lm",
  criterion = "AIC")

Arguments

X

matrix/dataframe; predictors

Y

vector/matrix/dataframe; observations to be used in the fitting process

currentGeneration

matrix; selectively produced generations

popNum

integer; What is the population size of chromosomes? Default to 100

reg

string; 'lm'/'glm; What is the regression type? Default to 'lm'

criterion

string; function name; What is the objective criterion function? Default to 'AIC'

Examples

1

QinganZhao/GA documentation built on May 28, 2019, 6:41 a.m.