getCE: Calculates the conditional error.

Description Usage Arguments Examples

View source: R/zzz.R

Description

Calculates the conditional error at the interim analysis for a given Simon's design with "k" responses.

Usage

1
getCE(design, k)

Arguments

design

a dataframe containing all critical values for a Simon's two-stage design defined by the colums "r1", "n1", "r", "n" and "p0".

  • r1 = critical value for the first stage (more than "r1" responses needed to proceed to the second stage).

  • n1 = number of patients enrolled in the first stage.

  • r = critical value for the whole trial (more than "r" responses needed at the end of the study to reject the null hypothesis).

  • n = number of patients enrolled in the whole trial.

  • p0 = response probability under the null hypothesis

k

number of responses observed at the interim analysis.

Examples

1
2
design <- getSolutions()$Solutions[1,]
conditional_error <- getCE(design, 4)

Example output

Loading required package: Rcpp

OneArmPhaseTwoStudy documentation built on May 2, 2019, 9:28 a.m.