check_model_fn {voi} | R Documentation |
Check that a decision-analytic model function is of the appropriate form. Detect if it returns net benefit or CEA format note check_outputs adds a class
Description
Check that a decision-analytic model function is of the appropriate form. Detect if it returns net benefit or CEA format note check_outputs adds a class
Usage
check_model_fn(
model_fn,
par_fn,
mfargs = NULL,
outputs = NULL,
verbose = FALSE
)
Value
A modified copy of model_fn
with a class
attribute indicating whether it is
in net benefit "nb"
or cost-effectiveness "cea"
format, and an attribute "nopt"
giving the
number of decision options.
[Package voi version 1.0.3 Index]