Skip to content

Commit

Permalink
add cox ph example
Browse files Browse the repository at this point in the history
  • Loading branch information
clayford committed May 31, 2024
1 parent 4c35b98 commit be7ab43
Show file tree
Hide file tree
Showing 33 changed files with 995 additions and 13 deletions.
Binary file added data/leuk.rds
Binary file not shown.
Binary file modified docs/cm_files/figure-html/unnamed-chunk-27-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/cm_files/figure-html/unnamed-chunk-56-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/cm_files/figure-html/unnamed-chunk-61-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/cm_files/figure-html/unnamed-chunk-8-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/cm_files/figure-html/unnamed-chunk-9-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/data/leuk.rds
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/lm.html
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,7 @@ <h3>Linear model with time ordered data</h3>
<pre class="r"><code>library(car)
durbinWatsonTest(m)</code></pre>
<pre><code> lag Autocorrelation D-W Statistic p-value
1 -0.05006007 2.079992 0.904
1 -0.05006007 2.079992 0.93
Alternative hypothesis: rho != 0</code></pre>
<p>Based on our residual versus time plot and the result of the
Durbin-Watson test, we decide to assume our residual errors are
Expand Down
Binary file modified docs/lm_files/figure-html/unnamed-chunk-11-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/lm_files/figure-html/unnamed-chunk-9-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/lme_files/figure-html/unnamed-chunk-44-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/lme_files/figure-html/unnamed-chunk-55-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 41 additions & 1 deletion docs/refs.bib
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ @book{hosmer2008
year = 2008
}

@book{kleinbaum,
author = "David G. Kleinbaum, Mitchel Klein",
title = "Survival Analysis, a Self-Learning Text, Second Edition",
publisher = "Springer",
year = 2005
}


@book{bilder2015,
author = "Christopher R. Bilder and Thomas M. Loughin",
title = "Analysis of Categorical Data in {R}",
Expand Down Expand Up @@ -315,4 +323,36 @@ @Manual{topmodels
year = {2024},
note = {R package version 0.3-0/r1791},
url = {https://R-Forge.R-project.org/projects/topmodels/},
}
}
@Manual{survival-package,
title = {A Package for Survival Analysis in R},
author = {Terry M Therneau},
year = {2024},
note = {R package version 3.5-8},
url = {https://CRAN.R-project.org/package=survival},
}

@Manual{survminer,
title = {survminer: Drawing Survival Curves using 'ggplot2'},
author = {Alboukadel Kassambara and Marcin Kosinski and Przemyslaw Biecek},
year = {2021},
note = {R package version 0.4.9},
url = {https://CRAN.R-project.org/package=survminer},
}
@article{blood,
author = {ACUTE LEUKEMIA GROUP B and FREIREICH, EMIL J and GEHAN, EDMUND and FREI, EMIL, III and SCHROEDER, LESLIE R. and WOLMAN, IRVING J. and ANBARI, RACHAD and BURGERT, E. OMAR and MILLS, STEPHEN D. and PINKEL, DONALD and SELAWRY, OLEG S. and MOON, JOHN H. and GENDEL, B. R. and SPURR, CHARLES L. and STORRS, ROBERT and HAURANI, FARID and HOOGSTRATEN, BARTH and LEE, STANLEY},
title = "{The Effect of 6-Mercaptopurine on the Duration of Steroid-induced Remissions in Acute Leukemia: A Model for Evaluation of Other Potentially Useful Therapy}",
journal = {Blood},
volume = {21},
number = {6},
pages = {699-716},
year = {1963},
month = {06},
abstract = "{The effect of 6-MP therapy on the duration of remissions induced by adrenal corticosteroids has been studied as a model for testing of new agents. Ninetytwo patients under age 20 entered the study and were accepted for analysis. Sixty-two (67 per cent) had complete or partial remissions induced by corticosteroids. Patients in remission were randomly assigned to maintenance therapy with either 6-MP or placebo. The median duration of 6-MP-maintained complete remissions was 33 weeks and for placebo, 9 weeks. A sequential experimental design was used to analyze remission times while the study was in progress. This resulted in the study being stopped after analysis of the remission times of 21 pairs of patients (42 patients). Overall survival was not significantly different for the two treatment programs, since patients maintained on placebo were treated with 6-MP when relapse occurred.The activity of the known active antileukemic compound 6-MP was readily detected by this experimental design without compromise of optimal survival. Such a design should prove useful for the evaluation of new agents and also permit study of the remission maintenance activity of a compound separately from its remission inducing activity.}",
issn = {0006-4971},
doi = {10.1182/blood.V21.6.699.699},
url = {https://doi.org/10.1182/blood.V21.6.699.699},
eprint = {https://ashpublications.org/blood/article-pdf/21/6/699/571437/699.pdf},
}
570 changes: 563 additions & 7 deletions docs/survival.html

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 41 additions & 1 deletion refs.bib
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ @book{hosmer2008
year = 2008
}

@book{kleinbaum,
author = "David G. Kleinbaum, Mitchel Klein",
title = "Survival Analysis, a Self-Learning Text, Second Edition",
publisher = "Springer",
year = 2005
}


@book{bilder2015,
author = "Christopher R. Bilder and Thomas M. Loughin",
title = "Analysis of Categorical Data in {R}",
Expand Down Expand Up @@ -315,4 +323,36 @@ @Manual{topmodels
year = {2024},
note = {R package version 0.3-0/r1791},
url = {https://R-Forge.R-project.org/projects/topmodels/},
}
}
@Manual{survival-package,
title = {A Package for Survival Analysis in R},
author = {Terry M Therneau},
year = {2024},
note = {R package version 3.5-8},
url = {https://CRAN.R-project.org/package=survival},
}

@Manual{survminer,
title = {survminer: Drawing Survival Curves using 'ggplot2'},
author = {Alboukadel Kassambara and Marcin Kosinski and Przemyslaw Biecek},
year = {2021},
note = {R package version 0.4.9},
url = {https://CRAN.R-project.org/package=survminer},
}
@article{blood,
author = {ACUTE LEUKEMIA GROUP B and FREIREICH, EMIL J and GEHAN, EDMUND and FREI, EMIL, III and SCHROEDER, LESLIE R. and WOLMAN, IRVING J. and ANBARI, RACHAD and BURGERT, E. OMAR and MILLS, STEPHEN D. and PINKEL, DONALD and SELAWRY, OLEG S. and MOON, JOHN H. and GENDEL, B. R. and SPURR, CHARLES L. and STORRS, ROBERT and HAURANI, FARID and HOOGSTRATEN, BARTH and LEE, STANLEY},
title = "{The Effect of 6-Mercaptopurine on the Duration of Steroid-induced Remissions in Acute Leukemia: A Model for Evaluation of Other Potentially Useful Therapy}",
journal = {Blood},
volume = {21},
number = {6},
pages = {699-716},
year = {1963},
month = {06},
abstract = "{The effect of 6-MP therapy on the duration of remissions induced by adrenal corticosteroids has been studied as a model for testing of new agents. Ninetytwo patients under age 20 entered the study and were accepted for analysis. Sixty-two (67 per cent) had complete or partial remissions induced by corticosteroids. Patients in remission were randomly assigned to maintenance therapy with either 6-MP or placebo. The median duration of 6-MP-maintained complete remissions was 33 weeks and for placebo, 9 weeks. A sequential experimental design was used to analyze remission times while the study was in progress. This resulted in the study being stopped after analysis of the remission times of 21 pairs of patients (42 patients). Overall survival was not significantly different for the two treatment programs, since patients maintained on placebo were treated with 6-MP when relapse occurred.The activity of the known active antileukemic compound 6-MP was readily detected by this experimental design without compromise of optimal survival. Such a design should prove useful for the evaluation of new agents and also permit study of the remission maintenance activity of a compound separately from its remission inducing activity.}",
issn = {0006-4971},
doi = {10.1182/blood.V21.6.699.699},
url = {https://doi.org/10.1182/blood.V21.6.699.699},
eprint = {https://ashpublications.org/blood/article-pdf/21/6/699/571437/699.pdf},
}
Loading

0 comments on commit be7ab43

Please sign in to comment.