GLM.Select: Perform Model Selection Using Generalized Linear Models...

View source: R/ModelSelectionFunctions.R

GLM.SelectR Documentation

Perform Model Selection Using Generalized Linear Models (GLMs)

Description

GLM.Select generates a vector that contains an AIC, an AICc, a BIC, and a dispersion parameter estimate. Intent is to use this function in a loop to extract model information criterion for a range of model formulations, facilitating the automated selection of *best* model.

Usage

GLM.Select(formula, data, family)

Arguments

formula

character string representing a potential model formula.

data

Data frame containing columns with names corresponding to the values in the formula.

family

a description of the error distribution and link function to be used in the model (see glm and family. Outside of those values that can be used in glm, you can also specify it as *nb*. This tells the model to use the glm.nb function available in the package **MASS**.

Value

vector that contains the AIC, AICc, BIC and dispersion parameter estimate for a given model structure.

See Also

Other Model Selection: ZI.Select()


ballengerj/FishyR documentation built on June 17, 2022, 10:33 p.m.