Subject: [bug#39416] [PATCH 31/34] gnu: Add package r-cdm

From: Lars-Dominik Braun <[email-masked]>
Date: Tue, 4 Feb 2020 14:56:23 +0100

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

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index fe2ef959dd..396e9521a6 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -20130,3 +20130,41 @@ graphical model computation.  See Epskamp et al. (2012)
     (description
       "Path diagrams and visual analysis of various SEM packages' output.")
     (license license:gpl2)))
+
+(define-public r-cdm
+  (package
+    (name "r-cdm")
+    (version "7.4-19")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (cran-uri "CDM" version))
+        (sha256
+          (base32
+            "1ln1r3rk004fmk55iy08bjh3vv4wnkb8zg2wj3r9rq7pi8jn8fv4"))))
+    (properties `((upstream-name . "CDM")))
+    (build-system r-build-system)
+    (propagated-inputs
+      `(("r-mvtnorm" ,r-mvtnorm)
+        ("r-polycor" ,r-polycor)
+        ("r-rcpp" ,r-rcpp)
+        ("r-rcpparmadillo" ,r-rcpparmadillo)))
+    (home-page
+      "https://github.com/alexanderrobitzsch/CDM")
+    (synopsis "Cognitive Diagnosis Modeling")
+    (description
+      "Functions for cognitive diagnosis modeling and multidimensional item
+response modeling for dichotomous and polytomous item responses.  This package
+enables the estimation of the DINA and DINO model (Junker & Sijtsma, 2001,
+<doi:10.1177/01466210122032064>), the multiple group (polytomous) GDINA model
+(de la Torre, 2011, <doi:10.1007/s11336-011-9207-7>), the multiple choice DINA
+model (de la Torre, 2009, <doi:10.1177/0146621608320523>), the general
+diagnostic model (GDM; von Davier, 2008, <doi:10.1348/000711007X193957>), the
+structured latent class model (SLCA; Formann, 1992,
+<doi:10.1080/01621459.1992.10475229>) and regularized latent class analysis
+(Chen, Li, Liu, & Ying, 2017, <doi:10.1007/s11336-016-9545-6>).  See George,
+Robitzsch, Kiefer, Gross, and Uenlue (2017) <doi:10.18637/jss.v074.i02> for
+further details on estimation and the package structure.  For tutorials on how
+to use the CDM package see George and Robitzsch (2015,
+<doi:10.20982/tqmp.11.3.p189>) as well as Ravand and Robitzsch (2015).")
+    (license license:gpl2+)))
-- 
2.20.1