'msenlm' fits multiple species-environment non-linear models via maximum likelihood.

msenlm(
  models = NULL,
  data = NULL,
  xvar = NULL,
  yvar = NULL,
  method = "crossed",
  conf.level = 0.95
)

Arguments

models

Object listing models to fit (from set_models function).

data

A data frame containing 'x' (explanatory) and 'y' (response) variables.

xvar

Name of explanatory variable (must be univariate).

yvar

Names of response variables.

method

If "crossed", fit all models to all response variables. If "paired", fit first model to first response variables, etc.

conf.level

Confidence level for parameter confidence intervals. Default is 0.95.

Value

Object containg model fits to data y and x.

Examples


if (FALSE) {

models <- set_models(mean_fun=c("gaussian","beta"), err_dist=c("zip","zinb"))
fits <- msenlm(models=models, data=haul, xvar="depth",
               yvar=c("Albatrossia.pectoralis", "Sebastolobus.altivelis"))
}