getRoot: Get the Root of the Fish Model

Description Usage Arguments Value Examples

Description

Numerically finds the roots of the fish model given starting values (adults, [sun]fish, and juveniles) and parameter (harvest of adults, qE)

Usage

1
getRoot(x, pars, maxiter = 1000, ...)

Arguments

x

a vector of length 3 with names A0 (adult bass), F0 (planktivorous fish), and J0 (juvenile bass)

pars

vector of parameters to pass to model

maxiter

maximum number of iterations to use when finding root

...

additional arguments to pass to fishStep

Value

numeric vector with roots

Examples

1
2
3
getRoot(c(A0=15, F0=50, J0=10), pars=c(qE=-0.02)) # stocking, high starting A
getRoot(c(A0=2, F0=50, J0=5), pars=c(qE=-0.02)) # stocking, but start low A
getRoot(c(A0=15, F0=1, J0=15), pars=c(qE=0.02)) # harvesting, start high A

cboettig/bs-tipping documentation built on May 5, 2019, 7:08 a.m.