survival_fits_from_tabular: Create a partitioned survival model object from tabular input

Description Usage Arguments Value Examples

View source: R/survival_fit.R

Description

Create a partitioned survival model object from tabular input

Usage

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)

Arguments

base_dir

directory where the reference file is located

ref_file

Name of the reference file.

...

additional arguments to be passed to survival_fits_from_ref_struc()

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

Value

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.

Examples

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)

MattWiener/heemodFits documentation built on May 19, 2019, 8:21 a.m.