View source: R/generate_stacked_data.R
generate_stacked_data | R Documentation |
Function to generate stacked data by the subgroups considered in the model.
generate_stacked_data(
base_model,
subgroup_model,
data,
resptype = c("survival", "binary")
)
base_model |
( |
subgroup_model |
( |
data |
( |
resptype |
( |
Data frame of the stacked data.
generate_stacked_data(Surv(tt_pfs, ev_pfs) ~ arm, ~ x_1 + x_2, example_data, "survival")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.