saveProfiles: Save the profiles for Model region Save the profiles for...

Description Usage Arguments Value Examples

View source: R/write_fxns.R

Description

Save the profiles for Model region Save the profiles for Model region so that incidence plot can be re-created

Usage

1
2
saveProfiles(mydata = NULL, model_rtn = NULL, model_profile = NULL,
  rtn = NULL, profile = NULL, ireal = 1, run.list = NULL)

Arguments

mydata

A dataframe with all the data available for this DICE run

model_rtn

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

model_profile

A 2D numeric array with randomly chosen predicted profiles obtained by fitting the model region directly.

rtn

An nweeks x nregion 2D numeric array with the best fit for each region

profile

A 3D numeric array holding random predictions for each of the fit regions based on the history of their MCMC chains.

ireal

Integer - the MCMC chain number

run.list

A list with various run parameters

profile

A 3D numeric array holding random predictions for each of the fit regions based on the history of their MCMC chains.

Value

Returns err = 0 if successful

Examples

1
2
saveProfiles{ mydata = mydata, model_rtn = model_rtn, model_profile = model_profile, rtn = rtn, 
profile = profile,  ireal = ireal, run.list = run.list}	

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