Subject: [PATCH 01/12] gnu: Add r-statip.

From: Mădălin Ionel Patrașcu<[email-masked]>
Date: Wed, 7 Dec 2022 06:18:26 +0100

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

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 5c5258d6e0..d23265ad07 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -6452,6 +6452,41 @@ (define-public r-corrplot
     ;; Any version of the GPL
     (license license:gpl2+)))
 
+(define-public r-statip
+  (package
+    (name "r-statip")
+    (version "0.2.3")
+    (source (origin
+              (method url-fetch)
+              (uri (cran-uri "statip" version))
+              (sha256
+               (base32
+                "0kymc3ds1nx0h11ffmm3vmqr1w34gd0k788vf72x2v45h8c1ma2n"))))
+    (properties `((upstream-name . "statip")))
+    (build-system r-build-system)
+    (propagated-inputs
+     (list r-clue
+           r-rpart))
+    (home-page "https://github.com/paulponcet/statip")
+    (synopsis
+     "Statistical functions for probability distributions and regression")
+    (description
+     "This package provides a collection of miscellaneous statistical functions for:
+@itemize
+@item probability distributions: @code{dbern()}, @code{pbern()}, @code{qbern()},
+@code{rbern()} for the Bernoulli distribution, and @code{distr2name()}, @code{
+name2distr()} for distribution names;
+@item probability density estimation: @code{densityfun()};
+@item most frequent value estimation: @code{mfv()}, @code{mfv1()};
+@item other statistical measures of location: @code{cv()} (coefficient of
+variation), @code{midhinge()}, @code{midrange()}, @code{trimean()};
+@item construction of histograms: @code{histo()}, @code{find_breaks()};
+@item calculation of the Hellinger distance: @code{hellinger()};
+@item use of classical kernels: @code{kernelfun()}, @code{kernel_properties()};
+@item univariate piecewise-constant regression: @code{picor()}.
+@end itemize")
+    (license license:gpl3)))
+
 (define-public r-stringdist
   (package
     (name "r-stringdist")

base-commit: b2a848d23d37f31496e1ff664f1dcf6abcdcc388
-- 
2.38.1