sts: Estimation of the Structural Topic and Sentiment-Discourse Modelfor Text Analysis
The Structural Topic and Sentiment-Discourse (STS) model allows researchers to estimate topic models with document-level metadata that determines both topic prevalence and sentiment-discourse. The sentiment-discourse is modeled as a document-level latent variable for each topic that modulates the word frequency within a topic. These latent topic sentiment-discourse variables are controlled by the document-level metadata. The STS model can be useful for regression analysis with text data in addition to topic modeling’s traditional use of descriptive analysis. The method was developed in Chen and Mankad (2024) <doi:10.1287/mnsc.2022.00261>.
| Version: | 1.4 |
| Imports: | glmnet,matrixStats,slam,foreach,doParallel, parallel,stm,Matrix,mvtnorm,ggplot2,tm |
| LinkingTo: | Rcpp,RcppArmadillo |
| Suggests: | knitr,rmarkdown |
| Published: | 2025-01-25 |
| DOI: | 10.32614/CRAN.package.sts |
| Author: | Shawn Mankad [aut, cre], Li Chen [aut] |
| Maintainer: | Shawn Mankad <smankad at ncsu.edu> |
| License: | MIT + fileLICENSE |
| NeedsCompilation: | yes |
| CRAN checks: | sts results |
Documentation:
Downloads:
Linking:
Please use the canonical formhttps://CRAN.R-project.org/package=ststo link to this page.