xpar | R Documentation |
Markov chain Monte Carlo results from stock assessment of cod (Gadus morhua) in Icelandic waters, showing estimated model parameters.
xpar
Data frame containing 1000 rows and 8 columns:
R0 | average virgin recruitment |
Rinit | initial recruitment scaler |
uinit | initial harvest rate |
cSleft | left-side slope of commercial selectivity curve |
cSfull | age at full commercial selectivity |
sSleft | left-side slope of survey selectivity curve |
sSfull | age at full survey selectivity |
logq | log-transformed survey catchability |
Each column contains the results of 1 million MCMC iterations, after thinning to every 1000th iteration.
The MCMC analysis started at the best fit, so no burn-in period was discarded.
This data frame is a subset of the xmcmc
list from the
scape package, which contains further documentation about the
data and model. Specifically, xpar <- xmcmc$P
.
The MCMC analysis was run using the AD Model Builder software (https://www.admb-project.org).
Fournier, D.A., Skaug, H.J., Ancheta, J., Ianelli, J., Magnusson, A., Maunder, M.N., Nielsen, A., and Sibert, J. (2012). AD Model Builder: using automatic differentiation for statistical inference of highly parameterized complex nonlinear models. Optimization Methods and Software, 27, 233–249. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1080/10556788.2011.597854")}
Magnusson, A., Punt, A.E., and Hilborn, R. (2013). Measuring uncertainty in fisheries stock assessment: the delta method, bootstrap, and MCMC. Fish and Fisheries, 14, 325–342. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1111/j.1467-2979.2012.00473.x")}
xpar
(parameters), xrec
(recruitment),
xbio
(biomass), and xpro
(projected future
biomass) are MCMC data frames to explore.
plotMCMC-package
gives an overview of the package.
plotTrace(xpar, xlab="Iterations", ylab="Parameter value",
layout=c(2,4))
plotTrace(xpar$R0, axes=TRUE, div=1000)
plotAuto(xpar$R0)
plotAuto(xpar$R0, thin=10)
plotAuto(xpar, lag.max=50, ann=FALSE, axes=FALSE)
plotCumu(xpar$R0, main="R0")
plotCumu(xpar$cSfull, main="cSfull")
plotCumu(xpar, probs=c(0.25,0.75), ann=FALSE, axes=FALSE)
plotSplom(xpar, pch=".")
plotDens(xpar, xlab="Parameter value", ylab="Posterior density\n")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.