Check for scenario data
Value
Whether the scenario
has data, or whether all scenario
objects in
a comparison
object have data generated.
Examples
# create a scenario
pandemic_flu <- scenario(
name = "pandemic_flu",
model_function = "finalsize::final_size",
parameters = make_parameters_finalsize_UK(),
replicates = 1
)
covid19 <- scenario(
model_function = "finalsize::final_size",
parameters = make_parameters_finalsize_UK(r0 = 3.0),
replicates = 1
)
# for a `scenario` object
sce_has_data(pandemic_flu)
#> [1] FALSE
# for a `comparison` object
comparison_flu_covid <- comparison(
pandemic_flu, covid19,
baseline = "pandemic_flu"
)
sce_has_data(comparison_flu_covid)
#> [1] FALSE