## Not run:
# library(BACCT)
# #borrow from 3 historical trials#
# yh = c(11,300,52);nh = c(45,877,128)
# #specify current trial sample sizes#
# n1 = 20;n2 = 30
#
# #Difference criterion type in full simulation mode#
# obj1 = BAC_binom(yh=yh,nh=nh,n1=n1,n2=n2,n.chain=5,
# criterion.type="diff",sim.mode="full")
#
# #Probability criterion type in express simulation mode#
# obj2 = BAC_binom(yh=yh,nh=nh,n1=n1,n2=n2,n.chain=5,
# criterion.type="prob",prob.threshold=0.1,sim.mode="express")
#
# #S3 method for class "BAC"
# summary(obj1)
# ## End(Not run)
Run the code above in your browser using DataLab