View source: R/get_ss_matrix.R
get_ss_matrix | R Documentation |
This function computes the matrix with sample sizes per arm and period. It is used in the functions datasim_bin()
and datasim_cont()
.
get_ss_matrix(num_arms, n_arm, d)
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 |
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.
Pavla Krotka
get_ss_matrix(num_arms = 3, n_arm = 100, d = c(0, 100, 250))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.