Description Usage Arguments Value Examples
This function allows you to plot a willingness to pay plot based on a two-way meta analysis object.
1 2 3 4 |
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. |
Returns NULL invisibly.
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')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.