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

From: Aniket Patil <[email-masked]>
Date: Sat, 31 Oct 2020 20:38:51 +0530

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

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index cc4e5f2bba..b40c5bdb21 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -24784,3 +24784,44 @@ multiple treatment studies, multiple endpoints, or other forms of clustering).
 Network meta-analyses and meta-analyses accounting for known correlation 
 structures (e.g., due to phylogenetic relatedness) can also be conducted.")
     (license license:gpl2+)))
+
+(define-public r-altmeta
+  (package
+    (name "r-altmeta")
+    (version "3.2")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (cran-uri "altmeta" version))
+        (sha256
+          (base32
+            "0z252lbsknqp33i0b0xf5r7spr535iq47bv40vgip6nsqhgrl7b0"))))
+    (properties `((upstream-name . "altmeta")))
+    (build-system r-build-system)
+    (propagated-inputs
+      `(("r-coda" ,r-coda)
+        ("r-lme4" ,r-lme4)
+        ("r-matrix" ,r-matrix)
+        ("r-metafor" ,r-metafor)
+        ("r-rjags" ,r-rjags)))
+    (home-page
+      "https://cran.r-project.org/web/packages/altmeta")
+    (synopsis "Alternative Meta-Analysis Methods")
+    (description
+      "This package provides alternative statistical methods for 
+meta-analysis, including: - bivariate generalized linear mixed 
+models for synthesizing odds ratios, relative risks, and risk 
+differences (Chu et al., 2012 <doi:10.1177/0962280210393712>) - 
+heterogeneity tests and measures that are robust to outliers 
+(Lin et al., 2017 <doi:10.1111/biom.12543>); - measures, tests, 
+and visualization tools for publication bias or small-study effects 
+(Lin and Chu, 2018 <doi:10.1111/biom.12817>; Lin, 2019 
+<doi:10.1002/jrsm.1340>; Lin, 2020 <doi:10.1177/0962280220910172>; 
+Shi et al., 2020 <doi:10.1002/jrsm.1415>); - meta-analysis of diagnostic 
+tests for synthesizing sensitivities, specificities, etc. 
+(Reitsma et al., 2005 <doi:10.1016/j.jclinepi.2005.02.022>; Chu and Cole, 
+2006 <doi:10.1016/j.jclinepi.2006.06.011>); - meta-analysis methods for 
+synthesizing proportions (Lin and Chu, 2020 
+<doi:10.1097/ede.0000000000001232>); - models for multivariate 
+meta-analysis (Lin and Chu, 2018 <doi:10.1002/jrsm.1293>).")
+    (license license:gpl2+)))
-- 
2.28.0