Skip to contents

Processes the model fit, extracts samples and quantiles, and writes them to the appropriate directories.

Usage

write_model_outputs(
  fit,
  samples,
  summaries,
  output_dir,
  job_id,
  task_id,
  metadata = list()
)

Arguments

fit

An EpiNow2 fit object with posterior estimates.

samples

A data.table as returned by process_samples()

summaries

A data.table as returned by process_quantiles()

output_dir

String. The base output directory path.

job_id

String. The identifier for the job.

task_id

String. The identifier for the task.

metadata

List. Additional metadata to be included in the output. The paths to the samples, summaries, and model output will be added to the metadata list.

Value

Invisible NULL. The function is called for its side effects.