All Projects → benkeser → survtmle

benkeser / survtmle

Licence: other
Targeted Learning for Survival Analysis

Programming Languages

r
7636 projects
Jupyter Notebook
11667 projects

Projects that are alternatives of or similar to survtmle

drtmle
Nonparametric estimators of the average treatment effect with doubly-robust confidence intervals and hypothesis tests
Stars: ✭ 14 (-22.22%)
Mutual labels:  tmle, ensemble-learning
Stacking-Blending-Voting-Ensembles
This repository contains an example of each of the Ensemble Learning methods: Stacking, Blending, and Voting. The examples for Stacking and Blending were made from scratch, the example for Voting was using the scikit-learn utility.
Stars: ✭ 34 (+88.89%)
Mutual labels:  ensemble-learning
Automlpipeline.jl
A package that makes it trivial to create and evaluate machine learning pipeline architectures.
Stars: ✭ 223 (+1138.89%)
Mutual labels:  ensemble-learning
Skggm
Scikit-learn compatible estimation of general graphical models
Stars: ✭ 177 (+883.33%)
Mutual labels:  ensemble-learning
TFDeepSurv
COX Proportional risk model and survival analysis implemented by tensorflow.
Stars: ✭ 75 (+316.67%)
Mutual labels:  survival-analysis
TF-Speech-Recognition-Challenge-Solution
Source code of the model used in Tensorflow Speech Recognition Challenge (https://www.kaggle.com/c/tensorflow-speech-recognition-challenge). The solution ranked in top 5% in private leaderboard.
Stars: ✭ 58 (+222.22%)
Mutual labels:  ensemble-learning
PyNets
A Reproducible Workflow for Structural and Functional Connectome Ensemble Learning
Stars: ✭ 114 (+533.33%)
Mutual labels:  ensemble-learning
Mlr
Machine Learning in R
Stars: ✭ 1,542 (+8466.67%)
Mutual labels:  survival-analysis
Lifelines
Survival analysis in Python
Stars: ✭ 1,766 (+9711.11%)
Mutual labels:  survival-analysis
bess
Best Subset Selection algorithm for Regression, Classification, Count, Survival analysis
Stars: ✭ 14 (-22.22%)
Mutual labels:  survival-analysis
pydata-london-2018
Slides and notebooks for my tutorial at PyData London 2018
Stars: ✭ 22 (+22.22%)
Mutual labels:  survival-analysis
random-survival-forest
A Random Survival Forest implementation for python inspired by Ishwaran et al. - Easily understandable, adaptable and extendable.
Stars: ✭ 40 (+122.22%)
Mutual labels:  survival-analysis
imbalanced-ensemble
Class-imbalanced / Long-tailed ensemble learning in Python. Modular, flexible, and extensible. | 模块化、灵活、易扩展的类别不平衡/长尾机器学习库
Stars: ✭ 199 (+1005.56%)
Mutual labels:  ensemble-learning
survHE
Survival analysis in health economic evaluation Contains a suite of functions to systematise the workflow involving survival analysis in health economic evaluation. survHE can fit a large range of survival models using both a frequentist approach (by calling the R package flexsurv) and a Bayesian perspective.
Stars: ✭ 32 (+77.78%)
Mutual labels:  survival-analysis
hdnom
Benchmarking and Visualization Toolkit for Penalized Cox Models
Stars: ✭ 36 (+100%)
Mutual labels:  survival-analysis
Awesome Ensemble Learning
Ensemble learning related books, papers, videos, and toolboxes
Stars: ✭ 195 (+983.33%)
Mutual labels:  ensemble-learning
pycobra
python library implementing ensemble methods for regression, classification and visualisation tools including Voronoi tesselations.
Stars: ✭ 111 (+516.67%)
Mutual labels:  ensemble-learning
stackgbm
🌳 Stacked Gradient Boosting Machines
Stars: ✭ 24 (+33.33%)
Mutual labels:  ensemble-learning
Skin Lesions Classification DCNNs
Transfer Learning with DCNNs (DenseNet, Inception V3, Inception-ResNet V2, VGG16) for skin lesions classification
Stars: ✭ 47 (+161.11%)
Mutual labels:  ensemble-learning
stremr
Streamlined Estimation for Static, Dynamic and Stochastic Treatment Regimes in Longitudinal Data
Stars: ✭ 33 (+83.33%)
Mutual labels:  tmle

R/survtmle

Travis-CI Build Status AppVeyor Build Status Coverage Status CRAN CRAN downloads Project Status: Active – The project has reached a stable, usable state and is being actively developed. MIT license DOI

Targeted Minimum Loss-Based Estimation (TMLE) for Survival Analysis with Competing Risks

Authors: David Benkeser and Nima Hejazi


Description

survtmle is an R package designed to use targeted minimum loss-based estimation (TMLE) to compute covariate-adjusted marginal cumulative incidence estimates in right-censored survival settings with and without competing risks. The estimates can leverage ensemble machine learning via the SuperLearner package.


Installation

For standard use, we recommend installing the package from CRAN via

install.packages("survtmle")

You can install a stable release of survtmle from GitHub via devtools with:

devtools::install_github("benkeser/survtmle")

Issues

If you encounter any bugs or have any specific feature requests, please file an issue.


Example

This minimal example shows how to use survtmle to obtain cumulative incidence estimates with a very simple, simulated data set.

# load the package and set seed for reproducibility
library(survtmle)
#> survtmle: Targeted Learning for Survival Analysis
#> Version: 1.1.2
set.seed(341796)

# simulate data
n <- 100
t_0 <- 10
W <- data.frame(W1 = runif(n), W2 = rbinom(n, 1, 0.5))
A <- rbinom(n, 1, 0.5)
T <- rgeom(n,plogis(-4 + W$W1 * W$W2 - A)) + 1
C <- rgeom(n, plogis(-6 + W$W1)) + 1
ftime <- pmin(T, C)
ftype <- as.numeric(ftime == T)

# apply survtmle for estimation
fit <- survtmle(ftime = ftime, ftype = ftype,
                trt = A, adjustVars = W,
                glm.trt = "1",
                glm.ftime = "I(W1*W2) + trt + t",
                glm.ctime = "W1 + t",
                method = "hazard",
                t0 = t_0)

# extract cumulative incidence at each timepoint
tpfit <- timepoints(fit, times = seq_len(t_0))

# examine output object produced by the timepoints function
tpfit
#> $est
#>              t1         t2         t3         t4         t5         t6
#> 0 1 0.032997470 0.06492788 0.09582530 0.12572293 0.15465313 0.18264737
#> 1 1 0.008014555 0.01603567 0.02406256 0.03209448 0.04013064 0.04817027
#>             t7         t8         t9        t10
#> 0 1 0.20973629 0.23594966 0.26131640 0.28586459
#> 1 1 0.05621257 0.06425675 0.07230203 0.08034761
#> 
#> $var
#>               t1           t2           t3           t4           t5
#> 0 1 4.565496e-04 0.0005099637 0.0004951975 0.0004852183 0.0005862762
#> 1 1 2.111604e-06 0.0003345475 0.0003208485 0.0003079889 0.0006317931
#>               t6           t7           t8           t9         t10
#> 0 1 0.0012883360 0.0013743743 0.0012847990 0.0020298371 0.003137739
#> 1 1 0.0006229943 0.0009761833 0.0009544762 0.0009534062 0.000956650

# examine plot of cumulative incidences
plot(tpfit)


Contributions

Contributions are very welcome. Interested contributors can consult our contribution guidelines prior to submitting a pull request.


Citation

After using the survtmle R package, please cite both of the following:

    @manual{benkeser2017survtmle,
      author = {Benkeser, David C and Hejazi, Nima S},
      title = {{survtmle}: Targeted Minimum Loss-Based Estimation for
               Survival Analysis in {R}},
      year  = {2017},
      howpublished = {\url{https://github.com/benkeser/survtmle}},
      url = {http://dx.doi.org/10.5281/zenodo.835868},
      doi = {10.5281/zenodo.835868}
    }

    @article{benkeser2017improved,
      author = {Benkeser, David C and Carone, Marco and Gilbert, Peter B},
      title = {Improved estimation of the cumulative incidence of rare
               outcomes},
      journal = {Statistics in Medicine},
      publisher = {Wiley-Blackwell},
      year  = {2017},
      doi = {10.1002/sim.7337}
    }

License

© 2016-2019 David C. Benkeser

The contents of this repository are distributed under the MIT license. See below for details:

The MIT License (MIT)

Copyright (c) 2016-2019 David C. Benkeser

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].