
Last chance! 50% off unlimited learning
Sale ends in
Import Coleraine MCMC traces for likelihoods, parameters, spawning biomass, and recruitment.
importMCMC(dir, coda=FALSE, quiet=TRUE, pretty.labels=FALSE,
l.choose=NULL, p.choose=NULL)
A list containing:
likelihoods
parameters
biomass by year
recruitment by year
as data frames, or mcmc
objects if coda=TRUE
.
directory containing the files mcmclike.out
,
params.pst
, spawbiom.pst
and recruits.pst
.
whether data frames should be coerced to class mcmc
using the coda package.
whether to report progress while parsing files in directory.
whether likelihood and parameter columns should be renamed
vector of strings, indicating which likelihood
components to import, or NULL
to import all.
vector of strings, indicating which parameters to
import, or NULL
to import all.
Hilborn, R., Maunder, M., Parma, A., Ernst, B., Payne, J., and Starr, P. (2003). Coleraine: A generalized age-structured stock assessment model. User's manual version 2.0. University of Washington Report SAFS-UW-0116.
read.table
, readLines
, and
scan
import any data.
importMCMC
and importProj
import Coleraine MCMC
results.
xmcmc
was created using importMCMC
.
scape-package
gives an overview of the package.
path <- system.file("example/mcmc", package="scape")
mcmc <- importMCMC(path) # or rename and select particular elements:
mcmc <- importMCMC(path, pretty.labels=TRUE,
l.choose=c("CAc","CAs","Survey","Prior","Total"),
p.choose=c("R0","Rinit","uinit","cSleft","cSfull",
"sSleft","sSfull","logq"))
Run the code above in your browser using DataLab