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

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

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

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 75d9ae7de2..cc4e5f2bba 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -24745,3 +24745,42 @@ mutations in each of 96 trinucleotide contexts and identifies
 the weighted combination of published signatures that, when summed, 
 most closely reconstructs the mutational profile.")
     (license license:gpl2+)))
+
+(define-public r-metafor
+  (package
+    (name "r-metafor")
+    (version "2.4-0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (cran-uri "metafor" version))
+        (sha256
+          (base32
+            "1b599fxk7s0brkchmx698fr5k4g1kzkia2rnlvhg349ffs5nfjmn"))))
+    (properties `((upstream-name . "metafor")))
+    (build-system r-build-system)
+    (propagated-inputs
+     `(("r-matrix" ,r-matrix)
+       ("r-nlme" ,r-nlme)))
+    (home-page
+      "https://cran.r-project.org/web/packages/metafor")
+    (synopsis "Meta-Analysis Package for R")
+    (description
+      "This package provides a comprehensive collection of 
+functions for conducting meta-analyses in R.  The package 
+includes functions to calculate various effect sizes or outcome 
+measures, fit fixed-, random-, and mixed-effects models to such 
+data, carry out moderator and meta-regression analyses, and create 
+various types of meta-analytical plots (e.g., forest, funnel, radial, 
+L'Abbe, Baujat, GOSH plots).  For meta-analyses of binomial and 
+person-time data, the package also provides functions that implement 
+specialized methods, including the Mantel-Haenszel method, Peto's 
+method, and a variety of suitable generalized linear (mixed-effects) 
+models (i.e., mixed-effects logistic and Poisson regression models).  
+Finally, the package provides functionality for fitting meta-analytic 
+multivariate/multilevel models that account for non-independent 
+sampling errors and/or true effects (e.g., due to the inclusion of 
+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+)))
-- 
2.28.0