View source: R/run_subgroup_sims.R
| benchmark_spec | R Documentation |
Describes the size-matched random benchmark subgroups regenerated in
every simulated trial. With the default nested = TRUE, a single
index draw of max(sizes) patients is taken per trial and the smaller
benchmarks are its prefixes (random15 \subset random20
\subset random40 \subset random60), exactly as in the
extreme-subgroups vignettes. Membership columns are named
paste0(prefix, sizes) and take values 0/1.
benchmark_spec(sizes = c(60L, 40L, 20L, 15L), nested = TRUE, prefix = "random")
sizes |
Integer vector of benchmark sizes. Order determines the
column-creation order only; the draw uses |
nested |
Logical. |
prefix |
Column-name prefix, default |
An object of class "benchmark_spec".
run_subgroup_sims()
benchmark_spec()
benchmark_spec(sizes = c(100, 50), prefix = "rnd")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.