Description Usage Arguments Value Examples
Create a partitioned survival model object from tabular input
1 2 3 4 5 6 7 8 9 | survival_fits_from_tabular(base_dir, ref_file, ...)
survival_fits_from_ref_struc(ref, save_fits = FALSE, just_load = FALSE, ...)
partitioned_survival_from_tabular(base_dir, ref_file, state_names,
save_fits = FALSE, just_load = FALSE)
partitioned_survival_from_ref_struc(ref, state_names, save_fits = FALSE,
just_load = FALSE)
|
base_dir |
directory where the reference file is located |
ref_file |
Name of the reference file. |
... |
additional arguments to be passed to
|
ref |
data frame read from the reference file. |
save_fits |
should the models be saved to disk? |
just_load |
should we just load the models instead of fitting? |
state_names |
names of states in the strategies |
a tibble of partitioned survival objects
(for part_surv_from_tabular
)
or a list (for survival_fits_from_tabular
),
with each element being a similar
tibble of flexsurvreg fits for either overall survival
or progression-free survival.
There are columns to distinguish the different distributions used
used in survival fitting, different treatments, and different subsets.
1 2 3 4 5 6 7 | fit_tibble <- partitioned_survival_from_tabular(system.file("surv",
package = "heemodFits"),
"example_oncSpecs.csv",
c("ProgressionFree", "Progressive",
"Terminal", "Death"),
save_fits = FALSE,
just_load = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.