>From 132331d2b31c792e56dfa9c365b32a9dbce08102 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Fri, 31 Jan 2020 17:57:12 +0100 Subject: [v2 11/34] gnu: Add package r-stm * gnu/packages/cran.scm (r-stm): 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 38cab6f179..a2c7ca2e71 100644 --- a/gnu/packages/cran.scm +++ b/gnu/packages/cran.scm @@ -19543,3 +19543,41 @@ David M. Blei and co-authors and the C++ code for fitting @abbr{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 @dfn{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) +@url{doi:10.1111/ajps.12103} and Roberts et al (2016) +@url{doi:10.1080/01621459.2016.1141684}. Vignette is Roberts et al (2019) +@url{doi:10.18637/jss.v091.i02}.") + (license license:expat))) + -- 2.20.1