scheike / timereg

timereg R package, survival analysis methods
30 stars 5 forks source link

** 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

git@github.com: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: