check_model_fn: Check that a decision-analytic model function is of the...

View source: R/model.R

check_model_fnR 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.


voi documentation built on Sept. 17, 2024, 1:07 a.m.