Skip to content

JuliaSurv/SurvivalModels.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SurvivalModels.jl

Survival analysis models and utilities, written in Julia.

Stable Dev Build Status Coverage Code Style: Blue ColPrac: Contributor's Guide on Collaborative Practices for Community Packages PkgEval Aqua

SurvivalModels.jl is part of the JuliaSurv ecosystem. It provides a consistent interface for nonparametric estimation and testing, semiparametric Cox regression, and fully parametric survival models.

Getting started

The package is available from Julia's General registry:

using Pkg
Pkg.add("SurvivalModels")

Then load it with:

using SurvivalModels

Available features

Nonparametric methods

  • Kaplan–Meier estimation, including Greenwood confidence intervals.
  • Survival and cumulative-hazard prediction at observed or user-supplied times.
  • Two- and multi-group log-rank tests.
  • Stratified log-rank tests with tied-event variance correction.

Semiparametric models

  • Cox proportional hazards regression through the formula interface.
  • Breslow baseline cumulative-hazard estimation.
  • Coefficients, standard errors, covariance matrices, confidence intervals, coefficient tables, log partial likelihood, AIC, AICc, and BIC.
  • Prediction of linear predictors, relative risks, term contributions, cumulative hazards, and survival probabilities.
  • Prediction on new data using the schema stored during fitting.

Parametric models

  • General Hazard (GH), Proportional Hazards (PH), Accelerated Failure Time (AFT), and Accelerated Hazards (AH) model structures.
  • Flexible continuous baseline distributions through the Distributions.jl interface.
  • Formula-based fitting, statistical inference, information criteria, and coefficient tables.
  • Cumulative-hazard and survival prediction for training or new data.
  • Simulation from GH, PH, AFT, and AH models.

Model evaluation and interfaces

  • Harrell's concordance index for Cox models.
  • IPCW Brier scores and integrated Brier scores for Cox and parametric models.
  • Standard fit, predict, coef, vcov, confint, and related interfaces from StatsBase.jl, StatsAPI.jl, and StatsModels.jl.
  • DataFrames.jl and @formula(Surv(time, status) ~ predictors) workflows.

See the stable documentation for examples and the complete API.

Contributions are welcome

Questions, bug reports, feature requests, and pull requests are welcome through the repository's issue tracker. General collaborative guidelines are available from ColPrac.

About

Non-parametric, semi-parametric, and parametric models for standard survival analysis.

Resources

License

Stars

10 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors

Languages