regFunc: Genetic Algorithms Regression Operation

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Allows for 'lm' or 'glm' to be passed in along with the formula and data and performs the regression.

Usage

1
regFunc(regType, family, formula, data)

Arguments

regType

The type of regression, either 'lm' or 'glm'.

family

The family type for 'glm'.

formula

The formula to evaluate.

data

The data to evaluate the regression with.

Value

The regression object.

Examples

1
regFunc('glm', 'gaussian', mpg ~ cyl, data = mtcars)

erickim/GA documentation built on May 28, 2019, 7:15 a.m.