Last data update: 2014.03.03

R: Best variables
best.varsR Documentation

Best variables

Description

Returns variables for the best model based on AIC

Usage

best.vars(x)

Arguments

x

A list of results of maglm and mamglm.

Value

A vector of terms for the best model.

Author(s)

Masatoshi Katabuchi <mattocci27@gmail.com>

See Also

maglm, mamglm

Examples

#load species composition and environmental data
data(capcay)
adj.sr <- capcay$adj.sr
env_sp <- capcay$env_sp

#to fit a poisson regression model:
res <- maglm(data=env_sp, y="adj.sr", family="gaussian")

best.vars(res)

Results