get_prior: Extract prior information for initial biomass, terminal...

Description Usage Arguments Details Value

Description

Extract prior information for initial biomass, terminal U/UMSY (ustatus) and terminal B/BMSY (bstatus) from a fit, which is useful for plotting and other tasks.

Usage

1
2
get_prior(fit, metric, interval = TRUE, percentile = 0.95,
  n.points = 1000)

Arguments

fit

An object of class srafit

metric

Which metric to use from 'carry', 'ustatus', 'bstatus'.

interval

Whether to return the prior credible interval or a sequence of points evaluated at the prior density.

percentile

The interval converage (e.g., .95 is the 95% credible interval)

n.points

The number of points if interval is FALSE

Details

This function always returns prior values evaluated in natural space, regardless of the distribution used. Thus lognormal priors will be converted to natural space.

Value

A vector with (lwr, median, upr) if interval is TRUE, and a data.frame with prior value (x) and prior density (y)


colemonnahan/sraplus documentation built on May 14, 2019, 3:10 a.m.