Subject: [PATCH 2/3] gnu: Add r-zcompositions.

From: Mădălin Ionel Patrașcu<[email-masked]>
Date: Thu, 16 Jun 2022 17:57:20 +0200

* gnu/packages/cran.scm (r-zcompositions): 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 28cd2e7fad..945cb5bdce 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -836,6 +836,37 @@ (define-public r-dlm
 known as Dynamic Linear Models.")
     (license license:gpl2+)))
 
+(define-public r-zcompositions
+  (package
+    (name "r-zcompositions")
+    (version "1.4.0-1")
+    (source (origin
+              (method url-fetch)
+              (uri (cran-uri "zCompositions" version))
+              (sha256
+               (base32
+                "1rrhja9iaq123r2gqw1bzrn1ri0s3z4wzq8p0sfcr1yb6pv13vik"))))
+    (properties `((upstream-name . "zCompositions")))
+    (build-system r-build-system)
+    (propagated-inputs
+     (list r-mass
+           r-nada
+           r-truncnorm))
+    (home-page "https://github.com/Japal/zCompositions")
+    (synopsis
+     "Treatment of zeros, left-censored and missing values in compositional data")
+    (description
+     "This package @code{zCompositions} is an @code{R} package for the imputation
+of left-censored data under a compositional approach.  The implemented methods
+consider aspects of relevance for a compositional approach such as scale
+invariance, subcompositional coherence or preserving the multivariate relative
+structure of the data.  Based on solid statistical frameworks, it comprises the
+ability to deal with single and varying censoring thresholds, consistent treatment
+of closed and non-closed data, exploratory tools, multiple imputation, @dfn{MCMC}
+(Markov Chain Monte Carlo), robust and non-parametric alternatives, and recent
+proposals for count data.")
+    (license license:gpl2+)))
+
 (define-public r-zoo
   (package
     (name "r-zoo")
-- 
2.36.1