## 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")
#
# rule = decision_eval(obj,decision.rule=c(0.05,0.15),
# control.range=seq(0.3,0.5,0.01),es=c(0,0.1,0.2),csv.name="result.csv")
#
# #S3 method for class "BACdecision"
# plot(rule,interim=T)
# ## End(Not run)
Run the code above in your browser using DataLab