kobeSS3: Reads SS3 results and returns stock and harvest rate relative...

Description Usage Arguments See Also Examples

View source: R/kobe-ss3.R

Description

Reads in derived posteriors from text files generated by SS3, i.e. assessment and projection and returns time series or summaries of B:BMSY and F:FMSY what specifies how data are returned, i.e. sims bootstraps for all years; trks percentiles given by prob; pts selected year(s) given by pts; smRY probabilities of being in the kobe quadrants and; wrms bootstraps selected at random. If of length 1 then a data.frame is returned, if >1 then a list of data.frames.

Usage

1
2
3
  kobeSS3(object,nrows=-1,thin=1,
          what=c("sims","trks","pts","smry","wrms")[1], 
          prob=c(0.75,0.5,0.25),pts=NULL,yrs=NULL,nwrms=10)

Arguments

object

character: derived posteriors file with MCMC runs.

nrows

numeric; if -ve reads all rowss, otherwise takes the 1st nrows from the file.

thin

numeric; thinning rate for chain.

what

character; specifies the form of data returned.

prob

numeric; probabilities with values in [0,1] for percentiles returned if what["trks"] selected.

pts

numeric; year(s) for points if what["pts"] selected.

yrs

numeric; year(s) for historical estimates.

nwrms

numeric; number of trajectories sampled at random to return if what["wrms"] selected.

See Also

kobeAspic,kobe2box,kobeSS3

Examples

1
2
3
4
## Not run: 
kobeSS3(...)

## End(Not run)

kobe documentation built on May 30, 2017, 12:15 a.m.

Search within the kobe package
Search all R packages, documentation and source code