willing2pay: Willingness to pay plot

Description Usage Arguments Value Examples

Description

This function allows you to plot a willingness to pay plot based on a two-way meta analysis object.

Usage

1
2
3
4
willing2pay(object, type, xlim = NA, xlim.quantile = 0.999,
  ylim = 0:1, xlab = "Costs per effect",
  ylab = "Probability of acceptance", main = "Willingness to Pay",
  col = 1, lty = 1, add = FALSE, res = 1000)

Arguments

object

object of class meta2way.

type

character length 1, either 'fixed' or 'random'. If object contains only one type of meta-analysis, this argument can be omitted.

xlim

numeric length 2 with the x-axis limits. Defaults to NA which means the argument xlim.quantile is used to determine xlim.

xlim.quantile

numeric length 1: which upper extreme of costs per effect will be plotted. Defaults to .999. Setting the value to 1 means the most extreme value will be plotted.

ylim

numeric length 2 with the y-axis limits. Defaults to c(0,1)

xlab

character x-axis label. Defaults to 'Costs per effect'

ylab

character y-axis label. Defaults to 'Probability of treshold'

main

character plot title. Defaults to 'Willingness to Pay'

col

line color. Defaults to 1.

lty

line type. Defaults to 1.

add

logical whether to add the line to the previous plot. Defaults to FALSE.

res

integer how many data points should be calculated between xlim[1] and xlim[2]. Defaults to 1000.

Value

Returns NULL invisibly.

Examples

1
2
3
m <- meta2way(study2way(treatments$Abrahams2018.x, treatments$Abrahams2018.y, 'Abrahams 2018'),
              study2way(treatments$Baruch2018.x, treatments$Baruch2018.y, 'Baruch 2018'))
willing2pay(m, 'fixed')

henrivanwerkhoven/meta2way documentation built on May 9, 2019, 5:03 a.m.