writeCSV: Write the Results of a 'DICE' Run - Uncoupled Multiple Region

Description Usage Arguments Value Examples

View source: R/write_fxns.R

Description

Write the results of a DICE run for multiple uncoupled regions into csv files. We write the observed if appropriate predictions. We write the best result along with the mean

Usage

1
2
3
writeCSV(mydata = NULL, run.list = NULL, tab = NULL, tab.model = NULL,
  model_rtn = NULL, model_profile = NULL, rtn = NULL, profile = NULL,
  ireal = 1)

Arguments

mydata

- dataframe with all the data for this DICE run

run.list

A list with various run parameters

tab

A list with the history of the MCMC chain for each of the fit_level regions

tab.model

An array with the history of the MCMC chain for the model_level region

model_rtn

A 1D numeric array with the best direct prediction to the region

model_profile

A 2D numeric array with randomly chosen predicted profiles obtained by fitting the mydata

ireal

Integer - the MCMC chain number

Value

Returns err = 0 if successful

Examples

1
2
writecsvOnePatch{mydata = mydata,run.list = run.list, tab = tab.model, model_rtn = model_rtn,
                 model_profile=model_profile, ireal= ireal}

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