Subject: [bug#39416] [PATCH 17/34] gnu: Add package r-sem

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

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

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 81e8731383..d318f2a33e 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -19703,3 +19703,30 @@ Response, and the Generalized Partial Credit Models.")
     (description
       "This package provides a collection of functions to support matrix calculations for probability, econometric and numerical analysis.  There are additional functions that are comparable to APL functions which are useful for actuarial models such as pension mathematics.  This package is used for teaching and research purposes at the Department of Finance and Risk Engineering, New York University, Polytechnic Institute, Brooklyn, NY 11201.")
     (license license:gpl2+)))
+
+(define-public r-sem
+  (package
+    (name "r-sem")
+    (version "3.1-9")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (cran-uri "sem" version))
+        (sha256
+          (base32
+            "1f9c6g6pfx66gd2pappcsqh484ah6a0x4z47hpd46rah0817hcsa"))))
+    (properties `((upstream-name . "sem")))
+    (build-system r-build-system)
+    (propagated-inputs
+      `(("r-boot" ,r-boot)
+        ("r-mass" ,r-mass)
+        ("r-matrixcalc" ,r-matrixcalc)
+        ("r-mi" ,r-mi)))
+    (home-page "https://cran.r-project.org/package=sem")
+    (synopsis "Structural Equation Models")
+    (description
+      "This package provides functions for fitting general linear structural
+equation models (with observed and latent variables) using the RAM approach,
+and for fitting structural equations in observed-variable models by two-stage
+least squares.")
+    (license license:gpl2+)))
-- 
2.20.1