best.vars: Best variables

Description Usage Arguments Value See Also Examples

View source: R/best.vars.R

Description

Returns variables for the best model based on AIC

Usage

1

Arguments

x

A list of results of 'maglm' and 'mamglmg'

Value

A vector of terms of the best model.

See Also

maglm, mamglm

Examples

1
2
3
4
5
6
7
8
9
#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)

mattocci27/mglmn documentation built on Aug. 3, 2020, 8:57 p.m.