summary refs log tree commit diff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2022-06-12 22:50:47 +0200
committerRicardo Wurmus <rekado@elephly.net>2022-06-12 22:51:23 +0200
commiteec1724ea6cf47027d408e13e59f268b4530877f (patch)
treed8aca66f4e716250245d272010f67109a9a64f3f
parent9c036f2dfb8f25b7eb40bc6946845183e0a54d2e (diff)
downloadguix-eec1724ea6cf47027d408e13e59f268b4530877f.tar.gz
gnu: Add r-rsq.
* gnu/packages/cran.scm (r-rsq): New variable.
-rw-r--r--gnu/packages/cran.scm26
1 files changed, 26 insertions, 0 deletions
diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index c1f0dc08b7..179616b43d 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -31617,6 +31617,32 @@ asynchronously from formatting.")
 utility operations.")
     (license license:gpl3)))
 
+(define-public r-rsq
+  (package
+    (name "r-rsq")
+    (version "2.5")
+    (source (origin
+              (method url-fetch)
+              (uri (cran-uri "rsq" version))
+              (sha256
+               (base32
+                "1r628srxhhf7b51lnj4qrzgbqajkm0ls47a9rzjkvmfq4ax5i73f"))))
+    (properties `((upstream-name . "rsq")))
+    (build-system r-build-system)
+    (propagated-inputs
+     (list r-deriv
+           r-lme4
+           r-mass
+           r-matrix
+           r-nlme))
+    (home-page "https://cran.r-project.org/package=rsq")
+    (synopsis "R-squared and related measures")
+    (description
+     "Calculate generalized R-squared, partial R-squared, and partial correlation
+coefficients for generalized linear (mixed) models (including quasi models
+with well defined variance functions).")
+    (license license:gpl2)))
+
 (define-public r-webutils
   (package
     (name "r-webutils")