timereg
timereg copied to clipboard
timereg R package, survival analysis methods
-
Timereg for Event Times (=timereg=) Additive survival model, semiparametric proportional odds model, cumulative residuals, excess risk models and more.
Flexible competing risks regression including GOF-tests. Two-stage frailty modelling. PLS for the additive risk model. Additive hazard Lasso in the 'ahaz' package for high-dimensional data. mets package has a collection of tools for multivariate data.Programs for Martinussen and Scheike (2006), `Dynamic Regression Models for Survival Data', Springer Verlag.
** Installation #+BEGIN_SRC R :exports both :eval never install.packages("timereg",dependencies=TRUE) #+END_SRC
The development version may be installed directly from github (requires [[http://cran.r-project.org/bin/windows/Rtools/][Rtools]] on windows and [[http://cran.r-project.org/bin/macosx/tools/][development tools]] (+Xcode) for Mac OS X): #+BEGIN_SRC R :exports both :eval never devtools::install_github("scheike/timereg") #+END_SRC or download the source #+BEGIN_EXAMPLE [email protected]:scheike/timereg #+END_EXAMPLE
** Citation
To cite the =timereg= package please use one of the following references
#+BEGIN_QUOTE Thomas H. Scheike, Torben Martinussen (2006), Dynamic Regression models for survival data. Springer, New-York #+END_QUOTE
#+BEGIN_QUOTE "Thomas H. Scheike, Mei-Jie Zhang (2011)." "Analyzing Competing Risk Data Using the R timereg Package." "Journal of Statistical Software, 38(2), 1-15." "URL http://www.jstatsoft.org/v38/i02/." #+END_QUOTE
#+BEGIN_QUOTE
#+END_QUOTE
BibTeX: #+BEGIN_EXAMPLE @Book{ms06, title = {Dynamic Regression Models for Survival Data}, publisher = {Springer-Verlag New York}, year = {2006}, author = {T. Martinussen and T.H. Scheike}, }
@Article{ts-mz-jss-2010, author = {Scheike, T. H. and Mei-Jie Zhang}, title = {Modelling competing risks data using the {R}-timereg package}, journal = {Journal of Statistical Software}, year = {2011}, volume = {38}, pages = {1-15}, }
#+END_EXAMPLE
** Examples
#+BEGIN_SRC R :exports both :file timereg1.png :cache yes library(timereg)
example(aalen) example(cox.aalen) example(comp.risk) example(two.stage) example(restricted.residual.mean)
#+END_SRC
:RESULTS: [[file:inst/timereg1.png]] :END: