summspm: summspm extracts critical statistics from output of...

View source: R/spm.r

summspmR Documentation

summspm extracts critical statistics from output of plotspmmod

Description

summspm extracts critical statistics from output of plotspmmod. In particular it pulls out the catchability q, the MSY, Bmsy, Dmsy, Blim, Btarg, Ctarg. and Dcurr.

Usage

summspm(ans)

Arguments

ans

the object output from the function plotspmmod used to plot the output of a surplus production analysis

Value

a matrix of statistics relating to MSY, expected yields, and depletion levels

Examples

data(dataspm)
plotfishM(dataspm,spsname="Pink Ling")
pars <- log(c(0.264,4740,3064,0.05))
ans <- plotspmmod(pars,dataspm,schaefer=FALSE,plotout=FALSE)
bestSP <- fitSPM(pars,dataspm,schaefer=FALSE,maxiter=1000)
outfit(bestSP)
ans <- plotspmmod(bestSP$estimate,dataspm,schaefer=FALSE,plotout=FALSE)
summspm(ans)

MQMF documentation built on Sept. 8, 2023, 5:14 p.m.