msenlm.best: Find the best model for each response variable from an msenlm...

msenlm.bestR Documentation

Find the best model for each response variable from an msenlm object

Description

Find the best model for each response variable from an msenlm object using the given criteria.

Usage

msenlm.best(object, best = "AICc")

Arguments

object

msenlm multiple model fit.

best

Select best model for each response variable according to the following criteria: "nll", "AIC", "AICc", "BIC".

Value

msenlm object only containing best fitted models.

Examples


## Not run: 

## Summarise data
models <- set_models(mean_fun=c("gaussian", "beta"),
                     err_dist=c("zinb", "zip"), method="crossed")
fits <- msenlm(models=models, data=haul, xvar="depth",
               yvar=c("Albatrossia.pectoralis", "Sebastolobus.altivelis"))
best <- msenlm.best(fits, best="AICc")
summary(best)

## End(Not run)


PRIMER-e/senlm documentation built on Nov. 20, 2022, 2:38 a.m.