Write model outputs to specified directories
write_model_outputs.Rd
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.