synthetic.compare: Plot Posterior Distributions for a Synthetic Example For each...

Description Usage Arguments Value Examples

View source: R/synthetic_fxns.R

Description

Plot Posterior Distributions for a Synthetic Example For each region we plot in blue the posterior density of R0 and of pC. In red we show the input value The entire history of the chain is used when showing the density. In the case of a coupled model we also compare the values for the saturation distance and the distance power (s_d and gamma respectively).

Usage

1
2
3
synthetic.compare(tab.fit = NULL, tab.cpl = NULL, fit_par = NULL,
  cpl_par = NULL, mydata = mydata, opt.list = NULL, run.list = NULL,
  imask = NULL, ireal = 1)

Arguments

tab.fit

The MCMC history of the fit

tab.cpl

MCMC history of the coupling parameters (if present)

fit_par

Parameter values used to create the synthetic profiles

cpl_par

Coupling parameter values used to create the synthetic profile

mydata

a list with all the data available for this run

opt.list

A logical list of all the parameters DICE recognizes and can optimize with TRUE/FALSE

run.list

a list with parameters used for the MCMC procedure

imask

An array of integers with +1/-1 values for parameters that are optimized (or not)

ireal

Integer - the MCMC chain number

Value

err Returns err = 0

Examples

1
2
synthetic.compare{tab.fit = tab.fit, tab.cpl = tab.cpl, fit_par = save_fit_par, cpl_par = save_cpl_par,opt.list = opt.list,
run.list = run.list, mydata = mydata, imask = imask, ireal = 1}

predsci/DICE documentation built on Aug. 9, 2019, 9:41 a.m.