ppnCatchErr: Generate log-normal error associated with catch data

View source: R/ppnErr.R

ppnCatchErrR Documentation

Generate log-normal error associated with catch data

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

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

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


CamFreshwater/samSim documentation built on Sept. 25, 2023, 10:22 a.m.