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

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


if (FALSE) {

## 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)
}