Skip to content

PolicyAnalysisInc/openqalysurv

 
 

Repository files navigation

openqalysurv

CircleCI build status Codecov test coverage

Overview

openqalysurv is a grammar of survival modeling for use with openqaly and the openqalyverse. It provides a series of verbs that help you define, combine, and modify survival distributions.

Installation

# Install latest version from github
remotes::install_github("PolicyAnalysisInc/openqalysurv")

Defining Survival Distributions

  • Parametric distributions with specified parameter values: define_surv_param()
  • Parametric mixture & non-mixture cure models with specified parameter values: define_surv_cure()
  • Royston & Parmar spline models with specified parameter values: define_surv_spline()
  • Life-tables: define_surv_lifetable()
  • Kaplan-Meiers based on product-limit table: define_surv_km()
  • Custom Functions: define_surv_func()
  • Full support for models estimated using flexsurv package
  • Partial support for KMs & Cox Models estimated using survival package

Modifying Survival Distributions

  • Apply hazard ratio: apply_hr()
  • Apply odds ratio: apply_or()
  • Apply acceleration factor: apply_af()
  • Apply shift in time: apply_shift()
  • Set covariate levels of models with covariates: set_covariates()

Combining Survival Distributions

  • Join survival distributions together at specified times: join()
  • Mix together survival distributions with specified weights: mix()
  • Combine distributions as independent risks: add_hazards()

Generating Predicted Values

  • Generate survival probabilities: surv_prob()
  • Generate event probabilities: event_prob()

About

A grammar of survival operations for health economic modeling

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 97.7%
  • C++ 2.3%