From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:55086) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iyyhU-0007qp-UK for guix-patches@gnu.org; Tue, 04 Feb 2020 08:57:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iyyhT-0000W0-Nh for guix-patches@gnu.org; Tue, 04 Feb 2020 08:57:12 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:36952) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iyyhT-0000Us-Jf for guix-patches@gnu.org; Tue, 04 Feb 2020 08:57:11 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iyyhS-0008H4-GR for guix-patches@gnu.org; Tue, 04 Feb 2020 08:57:10 -0500 Subject: [bug#39416] [PATCH 11/34] gnu: Add package r-stm Resent-Message-ID: From: Lars-Dominik Braun Date: Tue, 4 Feb 2020 14:56:03 +0100 Message-Id: <20200204135626.28261-11-ldb@leibniz-psychology.org> In-Reply-To: <20200204135626.28261-1-ldb@leibniz-psychology.org> References: <20200204135626.28261-1-ldb@leibniz-psychology.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 39416@debbugs.gnu.org Cc: Lars-Dominik Braun * gnu/packages/cran.scm (r-stm): New variable. --- gnu/packages/cran.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm index 9e5006b5f3..4b7ce21b1f 100644 --- a/gnu/packages/cran.scm +++ b/gnu/packages/cran.scm @@ -19543,3 +19543,40 @@ and co-authors and the C++ code for fitting LDA models using Gibbs sampling by Xuan-Hieu Phan and co-authors.") (license license:gpl2))) +(define-public r-stm + (package + (name "r-stm") + (version "1.3.5") + (source + (origin + (method url-fetch) + (uri (cran-uri "stm" version)) + (sha256 + (base32 + "1yyfxaxqc6yq0yq68zhdnhpwpvsyp71dlmivn7zxixfmp932s6cn")))) + (properties `((upstream-name . "stm"))) + (build-system r-build-system) + (propagated-inputs + `(("r-data-table" ,r-data-table) + ("r-glmnet" ,r-glmnet) + ("r-lda" ,r-lda) + ("r-matrix" ,r-matrix) + ("r-matrixstats" ,r-matrixstats) + ("r-quadprog" ,r-quadprog) + ("r-quanteda" ,r-quanteda) + ("r-rcpp" ,r-rcpp) + ("r-rcpparmadillo" ,r-rcpparmadillo) + ("r-slam" ,r-slam) + ("r-stringr" ,r-stringr))) + (home-page "http://www.structuraltopicmodel.com/") + (synopsis + "Estimation of the Structural Topic Model") + (description + "The Structural Topic Model (STM) allows researchers to estimate topic +models with document-level covariates. The package also includes tools for +model selection, visualization, and estimation of topic-covariate regressions. +Methods developed in Roberts et al (2014) and Roberts +et al (2016) . Vignette is Roberts et al +(2019) .") + (license license:expat))) + -- 2.20.1