alphaspending {BayesianPlatformDesignTimeTrend} | R Documentation |
This function estimates the mean error rate spent at each interim analysis for a trial Example usage:
sapply(res = result, fun = alphaspending) will generate list of the proportion of trial replicates are stopped at each stage for all scenarios in result where result is a list containing output data for different scenario
sapply(sapply(result,FUN = alphaspending),sum) will generate the type I error rate or power for all scenario on the result list
alpha(result) generate the proportion of trial replicates are stopped at each stage where result is the output data for one specific scenario
sum(alpha(result)) will generate the type I error rate or power for a specific scenario
alphaspending(res)
res |
A list of output matrix of a number of trial replicates |
The error rate at each interim analysis
Ziyan Wang
## Not run: alphaspending(res)