mcmc.single.write: Write the MCMC History of an Uncoupled '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 uncoupled 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
mcmc.single.write(tab.model = NULL, tab.fit = NULL, opt.list = NULL,
  run.list = NULL, mydata = NULL, imask = NULL, ireal = 1)

Arguments

tab.model

The MCMC history of the direct fit of the model data

tab.fit

The MCMC history of an indirect fit of the model using the fit data

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

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)

ireal

Integer - the MCMC chain number

Value

err Returns err = 0

Examples

1
2
mcmc.single.write{tab.model = tab.model, tab.fit = tab.fit, 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.