boot_survey_error: Function to estimate boot-strapped errors for annual index

Description Usage Arguments Examples

View source: R/MEHRSI.R

Description

This function takes the best fitting model and resamples the data refitting and recomputing the indices to come up with a bootstrapped error estimate for the annual index value.

Usage

1
2
boot_survey_error(best_model, boot_reps = 500, year, variables, pred_pa = 1,
  ob_CPUE, distribution = "normal")

Arguments

year

Set of habitat variables to use in the modeling

variables

Set of habitat variables to use in the modeling

pred_pa

Predicted presence or absence at the transect

ob_CPUE

Observed CPUE at the transect

distribution

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

form

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

par

values for each of the parameters

Examples

1

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