Package: sts 1.0
Shawn Mankad
sts: Estimation of the Structural Topic and Sentiment-Discourse Model for 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 Li and Mankad (2024) <doi:10.2139/ssrn.4020651>.
Authors:
sts_1.0.tar.gz
sts_1.0.tar.gz(r-4.5-noble)sts_1.0.tar.gz(r-4.4-noble)
sts_1.0.tgz(r-4.4-emscripten)sts_1.0.tgz(r-4.3-emscripten)
sts.pdf |sts.html✨
sts/json (API)
# Install 'sts' in R: |
install.packages('sts', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org')) |
This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.
Last updated 1 months agofrom:097703156d. Checks:OK: 2. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Oct 18 2024 |
R-4.5-linux-x86_64 | OK | Oct 18 2024 |
Exports:esthcppestimateRegnTablesexclusivitySTSheldoutLikelihoodlgaecpplpbdcppprintRegnTablessemanticCoherenceSTSsts
Dependencies:clicodetoolsdata.tabledoParallelfastmatchforeachglmnetglueISOcodesiteratorsjsonlitelatticeldalifecyclemagrittrMatrixmatrixStatsmvtnormquadprogquantedaRcppRcppArmadilloRcppEigenrlangshapeslamSnowballCstmstopwordsstringistringrsurvivalvctrsxml2yaml
Readme and manuals
Help Manual
Help page | Topics |
---|---|
A Structural Topic and Sentiment-Discourse Model for Text Analysis | sts-package |
Regression Table Estimation | estimateRegnTables |
Exclusivity | exclusivitySTS |
Heldout Log-Likelihood | heldoutLikelihood |
Print estimated regression tables | printRegnTables |
Semantic Coherence | semanticCoherenceSTS |
Variational EM for the Structural Topic and Sentiment-Discourse (STS) Model | sts |