get_ss_matrix {NCC} | R Documentation |
Sample size matrix for a platform trial with a given number of treatment arms
Description
This function computes the matrix with sample sizes per arm and period. It is used in the functions datasim_bin()
and datasim_cont()
.
Usage
get_ss_matrix(num_arms, n_arm, d)
Arguments
num_arms |
Integer. Number of experimental treatment arms in the trial. |
n_arm |
Integer. Sample size per experimental treatment arm. |
d |
Integer vector with timings of adding new arms in terms of number of patients recruited to the trial so far. The first entry must be 0, so that the trial starts with at least one experimental treatment arm, and the entries must be non-decreasing. The vector length equals |
Value
Sample size matrix, consisting of the sample size per arm and per period, where the arms are represented in the rows (with the control arm in the first row and the experimental arms coming after ordered by entry time) and the periods are represented in the columns.
Author(s)
Pavla Krotka
Examples
get_ss_matrix(num_arms = 3, n_arm = 100, d = c(0, 100, 250))