mcmc.onepatch.write: Write the MCMC History of a Run - Single Region

Description Usage Arguments Value Examples

View source: R/mcmc_output_fxns.R

Description

Writes an RData file with the MCMC history for a DICE run on a single region/patch. The function also calcualtes 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.onepatch.write(tab.model = 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 mydata

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.onepatch.write{tab.model = tab.model, 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.