MyNixOS website logo
Description

Calculation for Single Arm Group Sequential Test with Binary Endpoint.

Consider an at-most-K-stage group sequential design with only an upper bound for the last analysis and non-binding lower bounds.With binary endpoint, two kinds of test can be applied, asymptotic test based on normal distribution and exact test based on binomial distribution. This package supports the computation of boundaries and conditional power for single-arm group sequential test with binary endpoint, via either asymptotic or exact test. The package also provides functions to obtain boundary crossing probabilities given the design.

BinGSD

The goal of BinGSD is to calculate boundaries and conditional power for single-arm group sequential test with binary endpoint. Two kinds of tests are available in this package: asymptotic test based on normal distribution; exact test based on binomial distribution. BinGSD also provides functions to compute boundary crossing probabilities given a specific design.

Installation

The released version of BinGSD can be downloaded from CRAN with:

install.packages("BinGSD")

Architecture

There are six functions in BinGSD to satisfy the needs of user to design and analyse the single-arm group-sequential trial with binary endpoints:

  • asymdesign: compute sample size and boundaries for each analysis, under asymptotic test.
  • exactdesign: compute sample size and boundaries for each analysis, under exact test.
  • asymprob: given the design, compute boundary crossing probabilities under asymptotic test.
  • exactprob: given the design, compute boundary crossing probabilities under exact test.
  • asymcp: given the design and interim statistic, compute conditional power under asymptotic test.
  • exactcp: given the design and interim statistic, compute conditional power under exact test.

Example

To design a single-arm group-sequential trial via BinGSD, user should first define some terms:

library(BinGSD) ##load package
I=c(0.2,0.4,0.6,0.8,1) ##information fractions
beta=0.2   ##desired overall type II error rate
betaspend=c(0.1,0.2,0.3,0.2,0.2) ##proportions of type II error spent at each analysis
alpha=0.05  ##desired overall type I error
p_0=0.3   #response rate under null hypothesis
p_1=0.5   #response rate under alternative hypothesis
K=5     #number of planned analyses
tol=1e-6 #tolerance level

Call function asymdesign to obtain sample sizes and boundaries based on asymptotic test, under the settings above:

asymdesign(I,beta,betaspend,alpha,p_0,p_1,K,tol) 

The output is an object of class asymdesign, including the last and only upper bound, lower boundaries, sample sizes, boundary crossing probabilities, actual overall type I error, power of the test, etc.

For usage of other functions in BinGSD, please refer to the manual or start with the examples at the last section of vignette.

Metadata

Version

0.0.1

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows