help heapbs

Title

heapbs Calculates the Probability of Miscoverage, the Probability of Cost Effectiveness and draws a graph of the Cost Effectiveness with a confidence ellipse.
Requires data generated from a bootstrap of the heabs function, or equivalent.

Syntax

heapbs,
[lci(varname)
uci(varname)
ref(int)
inb(varname)
draw
cost(varname)
effect(varname)
w2p(int)
scatteropts(string)
lineopts(string)
meanopts(string)
ellipopts(string)
twoway_options]

Description

Can return one or more of: the Probability of Miscoverage (PoM), the Probability of Cost Effectiveness (PCE) and a plot of the Cost Effectiveness, depending on input.
Uses the ellip command to draw plot. Defaults have been specified but most can be overidden. See ellip for more information.

Options

lci(var) used to indicate the lower confidence interval variable of the Incremental Net Benefit. (needed for PoM)

uci(var) used to indicate the upper confidence interval variable of the Incremental Net Benefit. (needed for PoM)

ref(#) the reference Incremental Net Benefit to be used in PoM. (needed for PoM)

inb(var) used to indicate the Incremental Net Benefit. (needed for PCE)

draw used to indicate a graph should be generated. (needed for plot)

cost(var) used to indicate the cost variable to be plotted. (needed for plot)

effect(var) used to indicate the effect variable to be plotted. (needed for plot)

w2p(int) used to add the threshold of willingness-to-pay onto the graph. (optional for plot)

scatteropts(string) used to customise appearance of scatterplot, using twoway syntax. (optional for plot)

lineopts(string) used to customise appearance of willingness-to-pay threshold, using twoway syntax. (optional for plot)

meanopts(string) used to customise appearance of marker for mean of estimates, using twoway syntax. (optional for plot)

ellipopts(string) used to customise appearance of ellipse twoway syntax. (optional for plot)

twoway_options allow control of graph titles, legends etc. See twoway_options

Examples

heapbs, lci(NB1Lo) uci(NB1Up) ref(341.9783) inb(NB1) draw cost(cost1) effect(effect1) name("graph1", replace)

heapbs, lci(NB1Lo) uci(NB1Up) ref(341.9783) inb(NB1) draw w2p(30) cost(cost1) effect(effect1) scatteropts(msize(small)) ///
lineopts(lcolor(blue)) meanopts(msymbol(Sh)) ellipopts(lcolor(blue)) name("graph2", replace)

heapbs, lci(NB1Lo) uci(NB1Up) ref(-200)

heapbs, lci(NB2Lo) uci(NB2Up) ref(300) inb(NB1)

Authors

Daniel Gallacher

Warwick Evidence

Warwick Medical School

University of Warwick

D.Gallacher@Warwick.ac.uk

Online: ellip