Drop outcome data from a scenario
or comparison
object
Source: R/helper_functions.R
sce_drop_data.Rd
Drop outcome data from a scenario
or comparison
object
Value
A scenario
or comparison
object where the data
field is, for
scenario
objects, an empty list of the same length as the number of
scenario replicates, and for comparison
objects, a list of scenario
objects with the data removed.
Examples
pandemic_flu <- scenario(
model_function = "finalsize::final_size",
parameters = make_parameters_finalsize_UK(r0 = 1.5),
extra_info = list(country = "UK", pathogen = "flu")
)
# run scenarios to generate data
pandemic_flu <- run_scenario(pandemic_flu)
# drop data
sce_drop_data(pandemic_flu)
#> Epidemic scenario object
#> Scenario name: No name specified (NA)
#> Model function: finalsize::final_size
#> Extra information on: "country", "pathogen"
#> Scenario replicates: 1
#> Scenario outcomes are not prepared