writecsvOnePatch: Write the Results of a 'DICE' Run - Single Region

Description Usage Arguments Value Examples

View source: R/write_fxns.R

Description

Write the results of a DICE run for a single region/patch to csv files. We write the observed if appropriate predictions. We write the best result along with the mean

Usage

1
2
writecsvOnePatch(mydata = NULL, run.list = NULL, tab = NULL,
  model_rtn = NULL, model_profile = NULL, ireal = 1)

Arguments

mydata

- dataframe with all the data for this DICE run

run.list

A list with various run parameters

tab

An array with the history of the MCMC chain

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.