saveTables: Save Tables with Results of Fitting/Forecasting the Disease...

Description Usage Arguments Value Examples

View source: R/write_fxns.R

Description

saveTables Saves and RData binary files with tables of the forecast/fit results as well as the observations the fit level data

Usage

1
2
3
saveTables(mydata = NULL, tables.mod = NULL, tables.fit = NULL,
  tables.agg.mod = NULL, mod_id = NULL, fit_id = NULL, run.list = NULL,
  ireal = 1)

Arguments

mydata

- dataframe with all the data for this DICE run

tables.mod

- a table with the data and the results for the model fit. It includes the mean and the 5-95% percentile (as well as the error)

tables.fit

- Optional a table with the data and the results for the fits at the fit_level. It includes the mean and the 5-95% percentile (as well as the error)

tables.agg.mod

- Optional. A table with the aggregate of the uncoupled fit_level results present only in the case of an uncoupled run

mod_id

The abbreviation of the states/regions-model level

fit_id

The abbreviation of the states/regions-fit level

run.list

A list with various run parameters

ireal

- Numeric, the number of the MCMC chain

Value

err=0 if file was saved

Examples

1
2
saveTables(mydata = mydata, tables.mod = tables.mod, tables.fit = NULL,
mod_id = mod_id, fit_id = fit_id, ireal = ireal)

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