>From 3702fa7f53f63b6a67ea744ee78c49fa65725136 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Tue, 4 Feb 2020 14:08:09 +0100 Subject: [v2 19/34] gnu: Add package r-regsem * gnu/packages/cran.scm (r-regsem): New variable. --- gnu/packages/cran.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm index 1e643d0baa..5c0b323d21 100644 --- a/gnu/packages/cran.scm +++ b/gnu/packages/cran.scm @@ -19763,3 +19763,33 @@ least squares.") (description "This package provides useful tools for structural equation modeling.") (license license:gpl2+))) + +(define-public r-regsem + (package + (name "r-regsem") + (version "1.3.9") + (source + (origin + (method url-fetch) + (uri (cran-uri "regsem" version)) + (sha256 + (base32 + "1klml4bp76mplipxaca7fk653cjxgdmmiciksxgiglxkzmf2bdps")))) + (properties `((upstream-name . "regsem"))) + (build-system r-build-system) + (propagated-inputs + `(("r-lavaan" ,r-lavaan) + ("r-rcpp" ,r-rcpp) + ("r-rcpparmadillo" ,r-rcpparmadillo) + ("r-rsolnp" ,r-rsolnp))) + (home-page + "https://cran.r-project.org/package=regsem") + (synopsis + "Regularized structural equation modeling") + (description + "Uses both ridge and lasso penalties (and extensions) to penalize +specific parameters in structural equation models. The package offers +additional cost functions, cross validation, and other extensions beyond +traditional structural equation models. Also contains a function to perform +@dfn{exploratory mediation} (XMed).") + (license license:gpl2+))) -- 2.20.1