corrMatGenerator: Correlation matrix generator

corrMatGeneratorR Documentation

Correlation matrix generator

Description

This function generate the correlation matrix for group sequential trials with two endpoints.

Usage

corrMatGenerator(tp, ts, rhops)

Arguments

tp

an information fraction vector of Hp

ts

an information fraction vector of Hs

rhops

a number that shows the correlation coefficient between the test statistics of the primary endpoint and that of the secondary endpoint

Value

the correlation matrix, Hp goes first, and Hs goes second.

Author(s)

Jiangtao Gou

Examples

corrMatGenerator(tp=c(0.64,1),
    ts=c(0.25,0.49,1),
    rhops=1)

triggerstrategy documentation built on July 9, 2023, 5:25 p.m.