Wrapper function for complete binomial and normal function to compute power and type 1 error.
list. Input function for all inputs in binomial and normal .
numeric. Number of simulations to run
NULL. stores the proportion of control and treatment, please do not fill it in.
a list with results of the simulation (power and type I error) and the input.
A list of input values used in the trial simulation.
data_frame. A data frame with the interim look and power at each look.
scalar. The type 1 error or the number of times the trial rejects the null when the parameters are simulated under the null hypothesis.
vector. The final estimate of the difference in posterior estimate of treatment and posterior estimate of the control group for all the simulation.
vector. The final probability of accepting the alternative for the simulations.
vector. The number of patients enrolled in the trial (sum of control and experimental group for each simulation.)
vector. Did the trial stop for futility during imputation of patient who had loss to follow up? 1 for yes and 0 for no.
vector. Did the trial stop for early success during imputation of patient who had loss to follow up? 1 for yes and 0 for no.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.