Learn R Programming

MDMA (version 2.0.0)

wtp: Probe willingness to pay

Description

Get the probability of being cost-effective given a certain cost-effectiveness threshold, and vice versa.

[Stable]

Usage

wtp(x, threshold = NULL, probability = NULL)

Value

wtp either the probability or the threshold. If there is no exact match to the given parameter in the bootstrap samples, the result is interpolated.

Arguments

x

object of class CEAC

threshold

cost-effectiveness threshold

probability

probability of being cost-effective

Author

Mathijs Deen

Details

One of the two parameters threshold and probability should be specified.

Examples

Run this code
CEA(gnomes, insulationMethod, Costs, diffHATS, 1000, "acorns") |>
  CEAC() |>
  wtp(probability = 0.80)
CEA(gnomes, insulationMethod, Costs, diffHATS, 1000, "acorns") |>
  CEAC() |>
  wtp(threshold = 8)

Run the code above in your browser using DataLab