# \donttest{
options(odin.verbose = FALSE)
example_config <- system.file("extdata", "example_config.yaml",
package = "MetaRVM")
# Run a single-instance simulation from a YAML file
results <- metaRVM(example_config)
# Print a high-level summary
results
# Access the tidy results table
head(results$results)
# Summarize and plot hospitalizations and deaths by age and race
results$summarize(
group_by = c("age", "race"),
disease_states = c("H", "D"),
stats = c("median", "quantile"),
quantiles = c(0.25, 0.75)
)$plot()
# Using a pre-parsed configuration object
cfg <- parse_config(example_config, return_object = TRUE)
results2 <- metaRVM(cfg)
# }
Run the code above in your browser using DataLab