Subject: [PATCH 5/5] gnu: Add r-fhtest.

From: Peter Lo <[email-masked]>
Date: Mon, 29 Jun 2020 16:03:40 +0800

* gnu/packages/cran.scm (r-fhtest): New variable.
---
 gnu/packages/cran.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index d3cd199130..3d02139f87 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -22402,3 +22402,34 @@ observed data and the MLE.")
       "This package provides functions to fit nonparametric survival
 curves, plot them, and perform logrank or Wilcoxon type tests.")
     (license license:gpl2+)))
+
+(define-public r-fhtest
+  (package
+    (name "r-fhtest")
+    (version "1.4")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (cran-uri "FHtest" version))
+        (sha256
+          (base32
+            "1wsn0j9ydpp9nfswiqg21p09kgkvaq8fh0y0h8syqgizah7i8vs2"))))
+    (properties `((upstream-name . "FHtest")))
+    (build-system r-build-system)
+    (propagated-inputs
+      `(("r-interval" ,r-interval)
+        ("r-kmsurv" ,r-kmsurv)
+        ("r-mass" ,r-mass)
+        ("r-perm" ,r-perm)
+        ("r-survival" ,r-survival)))
+    (home-page
+      "https://cran.r-project.org/web/packages/FHtest/")
+    (synopsis
+      "Tests for Survival Data Based on the Fleming-Harrington Class")
+    (description
+      "This package provides functions to compare two or more survival
+curves with: a) The Fleming-Harrington test for right-censored data
+based on permutations and on counting processes.  b) An extension of
+the Fleming-Harrington test for interval-censored data based on a
+permutation distribution and on a score vector distribution.")
+    (license license:gpl2+)))
-- 
2.17.1