ppnCatchErr: Generate log-normal error associated with catch data

Description Usage Arguments Value Examples

View source: R/ppnErr.R

Description

Like the ppnAgeErr function, this function generates assigns multi- variate logistic error (Schnute and Richards 1995, eqns.S.9 and S.10) to proportions data. Here it is intended to represent error in assigning mixed stock catches to specific stocks.

Usage

1
ppnCatchErr(ppnCatchVec, tau)

Arguments

ppnCatchVec

A numeric vector of proportions representing the true relative contribution of each stock to total catch. nStocks = length(ppnAgeVec).

tau

A numeric specifying the parameter that represents average var- iation in proportions.

Value

Returns a numeric vector representing proportions for each stock.

Examples

1
2
3
ppnCatchVec <- c(0.2, 0.4, 0.3, 0.1)
tau <- 0.7
ppnCatchErr(ppnCatchVec, tau)

TESA-workshops/TESAsamSim documentation built on Feb. 6, 2021, 12:25 a.m.