aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Wurmus <ricardo.wurmus@mdc-berlin.de>2019-01-09 16:56:10 +0100
committerRicardo Wurmus <rekado@elephly.net>2019-01-09 17:13:52 +0100
commit7aeec0cf374b9d911410ab87fd2fe985edad2430 (patch)
tree923fed3eecbc2d954d7e3177100f8f5f4f1129ad
parente3c0e3e36033f9f46e7c8460c86b16cf9e8298ec (diff)
downloadgnu-guix-7aeec0cf374b9d911410ab87fd2fe985edad2430.tar
gnu-guix-7aeec0cf374b9d911410ab87fd2fe985edad2430.tar.gz
gnu: Add r-cmprsk.
* gnu/packages/cran.scm (r-cmprsk): New variable.
-rw-r--r--gnu/packages/cran.scm27
1 files changed, 27 insertions, 0 deletions
diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 5204677380..f073124151 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -10197,3 +10197,30 @@ developed, tested and used at the Functional Genomics Center Zurich, where it
is used mainly for prototyping, teaching, and having fun with proteomics data.
But it can also be used to do data analysis for small scale data sets.")
(license license:gpl3)))
+
+(define-public r-cmprsk
+ (package
+ (name "r-cmprsk")
+ (version "2.2-7")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (cran-uri "cmprsk" version))
+ (sha256
+ (base32
+ "1imr3wpnj4g57n2x4ryahl4lk8lvq9y2r7319zv3k82mznha8bcm"))))
+ (build-system r-build-system)
+ (propagated-inputs
+ `(("r-survival" ,r-survival)))
+ (native-inputs
+ `(("gfortran" ,gfortran)))
+ (home-page "https://cran.r-project.org/web/packages/cmprsk")
+ (synopsis "Subdistribution analysis of competing risks")
+ (description
+ "This package provides tool for estimation, testing and regression
+modeling of subdistribution functions in competing risks, as described in
+Gray (1988), A class of K-sample tests for comparing the cumulative incidence
+of a competing risk, Ann. Stat. 16:1141-1154, and Fine JP and Gray RJ (1999),
+A proportional hazards model for the subdistribution of a competing risk,
+JASA, 94:496-509.")
+ (license license:gpl2+)))