Skip to contents

Run model and check Costs against an expected value

Usage

check_model_costs(expected_costs, ..., label = NULL)

Arguments

expected_costs

The exact expected Cost value.

...

Arguments passed to run_model().

label

A label for the test, passed to expect_equal().

Value

None, called for side effects (testthat assertion).

Examples

data(test_data)
check_model_costs(0, data = test_data, c_healthy = 0, c_sick = 0, c_intervention = 0, c_death = 0)