generate_stacked_data {bonsaiforest} | R Documentation |
Generation of Stacked Data by Subgroups
Description
Function to generate stacked data by the subgroups considered in the model.
Usage
generate_stacked_data(
base_model,
subgroup_model,
data,
resptype = c("survival", "binary")
)
Arguments
base_model |
( |
subgroup_model |
( |
data |
( |
resptype |
( |
Value
Data frame of the stacked data.
Examples
generate_stacked_data(Surv(tt_pfs, ev_pfs) ~ arm, ~ x_1 + x_2, example_data, "survival")
[Package bonsaiforest version 0.1.0 Index]