Learn R Programming

voi (version 1.0.3)

check_model_fn: 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
)

Arguments

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.