Description Usage Arguments Examples

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.

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

`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" |

1 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.