summary refs log tree commit diff
path: root/gnu/packages/statistics.scm
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2016-09-12 17:33:40 +0200
committerRicardo Wurmus <rekado@elephly.net>2016-09-12 17:44:41 +0200
commit3e4c0c6662e76943017fd7370b2bcee3fa2e5044 (patch)
tree460699c75f5e86962a8cc4e848a01e833b39aae4 /gnu/packages/statistics.scm
parent2b1cc79d989d99f68a70eaf60ebcb0b8bd30532f (diff)
downloadguix-3e4c0c6662e76943017fd7370b2bcee3fa2e5044.tar.gz
gnu: Add r-segmented.
* gnu/packages/statistics.scm (r-segmented): New variable.
Diffstat (limited to 'gnu/packages/statistics.scm')
-rw-r--r--gnu/packages/statistics.scm20
1 files changed, 20 insertions, 0 deletions
diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm
index 990f2fc132..2d2098031a 100644
--- a/gnu/packages/statistics.scm
+++ b/gnu/packages/statistics.scm
@@ -2136,6 +2136,26 @@ convenient and easy to use replacement for @code{cat} and @code{print}
 statements.")
     (license license:lgpl3+)))
 
+(define-public r-segmented
+  (package
+    (name "r-segmented")
+    (version "0.5-1.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (cran-uri "segmented" version))
+       (sha256
+        (base32
+         "1740cvx2q4v23g4q0zkvg50s5bv8jcrlzzhm7fac4xn0riwmzp5i"))))
+    (build-system r-build-system)
+    (home-page "http://cran.r-project.org/web/packages/segmented")
+    (synopsis "Regression models with breakpoints estimation")
+    (description
+     "Given a regression model, segmented updates the model by adding one or
+more segmented (i.e., piecewise-linear) relationships.  Several variables with
+multiple breakpoints are allowed.")
+    (license (list license:gpl2+ license:gpl3+))))
+
 (define-public r-snow
   (package
     (name "r-snow")