cor.mat {PlatformDesign}R Documentation

Calculate the correlation matrix of the z-statistics for a two-period K+M-experimental arm platform design with delayed arms

Description

Calculate the correlation matrix of the z-statistics in the two-period K+M-experimental arm platform design with delayed arms, given K, M, n, n0 and n0t.

Usage

cor.mat(K, M = 0, n, n0, n0t = NULL)

Arguments

K

the number of experimental arms in the first period in a two-period K+M-experimental arm trial

M

the number of new experimental arms added in the beginning of the second period in a two-period K+M-experimental arm trial, default = 0 for calculating the correlation matrix of the Z-test statistics when used for a K-experimental arm trial

n

the sample size in each of the experimental arms in a two-period K+M-experimental arm trial

n0

the sample size of the concurrent control for each experimental arm in a two-period K+M-experimental arm trial experimental arms

n0t

the number of patients already enrolled in the control arm when new experimental arms are added, default to NULL for calculating correlation matrix of the K-experimental arm trial

Details

Given K, M, n, n0 and n0t, calculate the correlation matrix of the z-statistics in the two-period K+M experimental arm trial (with one common control arm).

Value

cormat, the correlation matrix of Z-test statistics in the two-period K+M-experimental arm trial with one common control arm, or that in the K-experimental arm trial when M = 0

Examples

cor.mat(K = 2, M = 0, n = 101, n0 = 143)
#$cormat
#        [,1]      [,2]
#[1,] 1.0000000 0.4139344
#[2,] 0.4139344 1.0000000
#
#$cor1
#[1] 0.4139344
#
#$cor2
#NULL
#
cor.mat(K = 2, M = 2, n = 107, n0 = 198, n0t = 43)
#$cormat
#      [,1]      [,2]      [,3]      [,4]
#[1,] 1.0000000 0.3508197 0.2746316 0.2746316
#[2,] 0.3508197 1.0000000 0.2746316 0.2746316
#[3,] 0.2746316 0.2746316 1.0000000 0.3508197
#[4,] 0.2746316 0.2746316 0.3508197 1.0000000
#
#$cor1
#[1] 0.3508197
#
#$cor2
#[1] 0.2746316

[Package PlatformDesign version 2.1.4 Index]