alphaspending {BayesianPlatformDesignTimeTrend}R Documentation

alphaspending

Description

This function estimates the mean error rate spent at each interim analysis for a trial Example usage:

  1. 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

  2. sapply(sapply(result,FUN = alphaspending),sum) will generate the type I error rate or power for all scenario on the result list

  3. alpha(result) generate the proportion of trial replicates are stopped at each stage where result is the output data for one specific scenario

  4. 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)

[Package BayesianPlatformDesignTimeTrend version 1.2.3 Index]