alphaspending {BayesianPlatformDesignTimeTrend} | R Documentation |
alphaspending
Description
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
Usage
alphaspending(res)
Arguments
res |
A list of output matrix of a number of trial replicates |
Value
The error rate at each interim analysis
Author(s)
Ziyan Wang
Examples
## Not run: alphaspending(res)