Subject: [bug#42119] [PATCH 2/5] gnu: Add r-mlecens.

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

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

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index ab5e57c0e2..8be110a9bd 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -22325,3 +22325,32 @@ across a wide array of bioinformatic R packages.")
 and clustering large sequence datasets using fast alignment-free k-mer
 counting and recursive k-means partitioning.")
     (license license:gpl3)))
+
+(define-public r-mlecens
+  (package
+    (name "r-mlecens")
+    (version "0.1-4")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (cran-uri "MLEcens" version))
+        (sha256
+          (base32
+            "0zlmrcjraypscgs2v0w4s4hm7qccsmaz4hjsgqpn0058vx622945"))))
+    (properties `((upstream-name . "MLEcens")))
+    (build-system r-build-system)
+    (home-page "http://stat.ethz.ch/~maathuis/")
+    (synopsis
+      "Computation of the MLE for bivariate (interval) censored data")
+    (description
+      "This package contains functions to compute the nonparametric
+maximum likelihood estimator (MLE) for the bivariate distribution
+of (X,Y), when realizations of (X,Y) cannot be observed directly.  To
+be more precise, we consider the situation where we observe a set of
+rectangles that are known to contain the unobservable realizations
+of (X,Y).  We compute the MLE based on such a set of rectangles.  The
+methods can also be used for univariate censored data (see data set
+@code{cosmesis}), and for censored data with competing risks (see data
+set @code{menopause}).  We also provide functions to visualize the
+observed data and the MLE.")
+    (license license:gpl2+)))
-- 
2.17.1