Skip to contents

Introduction

This example demonstrates how to add new analysis functionality into East using R functions.

For all examples, we assume the trial design consist of control and an experimental treatment. There are 2 Interim Analyses (IA) and a Final Analysis (FA). At the IA, the analysis is performed and, depending on the example, may determine early efficacy or early futility depending on the design.

The examples included here are to provide different approaches for analyzing the data in the trial.

Once CyneRgy is installed, you can load this example in RStudio with the following commands:

CyneRgy::RunExample( "2ArmTimeToEventOutcomeAnalysis" )

Running the command above will load the RStudio project in RStudio.

RStudio Project File: 2ArmTimeToEventOutcomeAnalysis.Rproj

In the R directory of this example you will find the following R files:

  1. AnalyzeUsingEastLogrankFormula.R - Contains a function named AnalyzeUsingEastLogrankFormula to demonstrate the R code necessary for this example as described below.
  2. AnalyzeUsingSurvivalPackage.R - Contains a function named AnalyzeUsingSurvivalPackage to demonstrate the R code necessary for this example as described below.
  3. AnalyzeUsingHazardRatioLimitsOfCI.R - Contains a function named AnalyzeUsingHazardRatioLimitsOfCI to demonstrate the R code necessary for this example as described below.

Example 1 - Two Arm TTE Analysis Using Formulas in the East Manual

To replace the analysis, use the formulas Q.242 and Q.243 in the East manual to compute the statistic. The purpose of this example is to demonstrate how the analysis and decision making could be modified in a simple approach. The test statistic is compared to the lower boundary computed and sent by East as an input. This example does NOT include a futility rule.

Example 2 - Two Arm TTE Analysis Using survdiff Function From the Survival Package

This example utilizes the survdiff function from survival package to perform the analysis. The chisquare statistic from survdiff is used to compute the logrank statistic that is compared to the lower boundary computed and sent by East as an input. This example does NOT include a futility rule.

Example 3 - Utilization of Confidence Interval Limits for Go/No-Go Decision Making in 2-Arm Survival Analysis

In many phase II trials, teams like to utilize the upper and lower boundaries of a confidence interval (CI) for making Go and No-Go type decision. In this type of trial, teams often set a Minimum Acceptable Value (MAV), the minimum treatment difference that would warrant further development in a product, and a Target Value (TV), the value that is highly desirable based on other consideration. In this simplified example, if it is likely that the Hazard ratio is below the MAV then a Go decision is made. If a Go decision is not made, then if it is unlikely that the Hazard Ratio is below the TV, a No-Go decision is made.

In this example, the coxph() from survival package in R is utilized to analyze the data and compute estimate of log HR and Std error of log HR. The team would like to make a Go decision if there is at least a 90% chance that HR is below than the MAV.
If a Go decision is not made, then a No-Go decision is made if there is less than a 10% chance the HR is less than the TV. Using a frequentist CI an approximation to this design can be done by the logic described below.

At an Interim Analysis

For log Hazard Ratio:

  • If UL < UserParam$dMAV –> Go.
  • If LL > UserParam$dTV –> No-Go.
  • Otherwise, continue to the next analysis.

At the Final Analysis

  • If the Upper Limit of the CI (UL) is less than UserParam$dMAV –> Go. Specifically, if UL < UserParam$dMAV –> Go.
  • Otherwise, a No-Go decision is made.

Note: in this example the boundary information that is computed and sent from East is ignored in order to implement this decision approach.