| surv_set_weights | R Documentation |
Override design weights with custom values
surv_set_weights(design, weights)
design |
A |
weights |
Numeric vector of length equal to number of strata. |
Updated surv_design.
sim <- surv_simulate(n_regions = 3, n_weeks = 4, seed = 1)
d <- surv_design(sim$sequences, ~ region,
sim$population[c("region", "seq_rate")], sim$population)
d2 <- surv_set_weights(d, rep(1.0, d$n_strata))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.