Description Usage Arguments Author(s) Examples
View source: R/heatmap_decision.R
Visualizing a decision rule for binary endpoint using heatmap plots
1 | heatmap_decision(object, decision.rule, y1.display = NA, y2.display = NA)
|
object |
An object of "BAC" class. |
decision.rule |
A vector of |
y1.display, y2.display |
A subset of control/treatment number of events to be displayed. |
Hongtao Zhang
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Not run:
#borrow from 3 historical trials#
yh = c(11,300,52);nh = c(45,877,128)
#specify current trial sample sizes#
n1 = 20;n2 = 30
obj = BAC_binom(yh=yh,nh=nh,n1=n1,n2=n2,n.chain=5,
criterion.type="prob",prob.threshold=0.1,sim.mode="express")
#generate full heatmap
heatmap_decision(obj,decision.rule=c(0.05,0.15))
#generate partial heatmap
heatmap_decision(obj,decision.rule=c(0.05,0.15),y1.display=5:15,y2.display=10:25)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.