IM | R Documentation |
Calculates one-sided boundary values at the observed number of events.
IM(d2, dmax, last.look = FALSE, d1, etam, alpha, beta, opt = "OBF", param = 4)
d2 |
vector of number of events at which you want to monitor the trial. |
dmax |
maximum number of events in the experimental group calculated from design function. |
last.look |
logical which indicates whether the current look is the last look or not. Default is FALSE. |
d1 |
total number of events in the historical control group. |
etam |
value of the drift parameter obtained from design function. |
alpha |
type I error. |
beta |
type II error. |
opt |
type of spending function: "OBF", "Gamma", "Rho" or "Pocock". Default is "OBF". |
param |
Parameter for Gamma family or Rho family. Default value is 4. |
The number of events have to be entered sequentially. See example.
A list containing efficacy and futility boundary values along with the p-values and transformed information time for the current look. Post-hoc power is also calculated in case of early stopping of the trial.
Tushar Patni, Yimei Li, Jianrong Wu, and Arzu Onar-Thomas.
doi:10.1002/pst.1756HCTDesign
\insertRefdoi:10.1080/10543406.2019.1684305HCTDesign
#Interim look for the trial when the number of events is 13(first look).
gg<-IM(c(13),dmax=57,alpha=0.05,beta=0.1,etam=3.0726,d1=65,opt="OBF",last.look=FALSE)
#Interim look for the trial when the number of events is 35(second look).
gg<-IM(c(13,35),dmax=57,alpha=0.05,beta=0.1,etam=3.0726,d1=65,opt="OBF",last.look=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.