iteration: A wrapper function to find the best fitting MEHRSI habitat...

Description Usage Arguments Examples

View source: R/MEHRSI.R

Description

This function takes the habitat variables, observed CPUE, the equation form, starting parameters, the predicted presence or absence, the year, and the distribution. The function fits an intital full model and then iteratively reduces the number of parameters for each habitat variable. It then chooses the best-fitting reduced model and repeats the process until there is no improvement in AIC with the removal of additional parameters or variables. The function then returns a list with the fitting history and the best model results.

Usage

1
2
iteration(variables, form, ob_CPUE, pred_pa = 1, par, year,
  distribution = "normal")

Arguments

variables

Set of habitat variables to use in the modeling

form

for each variable, a form for the model equation (1, 2 or 3)

ob_CPUE

Observed CPUE at the transect

pred_pa

Predicted presence or absence at the transect

par

values for each of the parameters

year

Set of habitat variables to use in the modeling

distribution

Either "normal" (the default) or "gamma"

Examples

1

rooperc4/MEHRSI documentation built on May 21, 2019, 9:35 a.m.