mcmc.multi.write: Write the MCMC History of a Coupled 'DICE' Run

Description Usage Arguments Value Examples

View source: R/mcmc_output_fxns.R

Description

Writes an RData file with the MCMC history for an coupled DICE run. The function also calculates and prints to the screen the statistics for all the parameters that were optimized and does a Gaussian fit to these parameters. The results of these fits are written to separate a csv file.

Usage

1
2
3
mcmc.multi.write(tab.model = NULL, tab = NULL, tab.cpl = NULL,
  opt.list = NULL, opt.cpl = NULL, run.list = NULL, mydata = NULL,
  imask = NULL, cpl_imask = NULL, ireal = 1)

Arguments

tab.model

The MCMC history of the direct fit of the model data

tab

The MCMC history of an indirect fit of the model using a coupled model. This array includes all the parameters except the two that define the coupling matrix.

tab.cpl

The MCMC history of the two parameters that help define the coupling matrix: the saturation distance and the distance power.

opt.list

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

opt.cpl

A logical list for the two parameters that help define the coupling matrix.

run.list

a list with parameters used for the MCMC procedure

mydata

A dataframe with all the data available for this run

imask

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

cpl_imask

An array of length two with +1/-1 for the two parameters that help define the coupling matrix

ireal

Integer - the MCMC chain number

Value

err Returns err = 0

Examples

1
2
3
mcmc.single.write{tab.model = tab.model, tab= tab , tab.cpl = tab.cpl,
opt.list = opt.list,run.list = run.list, mydata = mydata, imask = imask,
cpl_imask = cpl_imask, ireal = 1}

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