Learn R Programming

dampack (version 1.0.0)

calculate_outcome: A function that is used to calculate all outcomes

Description

A function that is used to calculate all outcomes

Usage

calculate_outcome(
  outcome = c("nhb", "nmb", "eff", "cost", "nhb_loss", "nmb_loss", "nhb_loss_voi",
    "nmb_loss_voi"),
  cost,
  effect,
  wtp
)

Arguments

outcome

choice of outcome

cost

data frame with costs

effect

data frame with effects

wtp

willingness-to-pay threshold

Value

a data.frame of the desired outcome values for each strategy