Package: sts 1.2

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 Chen and Mankad (2024) <doi:10.1287/mnsc.2022.00261>.

Authors:Shawn Mankad [aut, cre], Li Chen [aut]

sts_1.2.tar.gz
sts_1.2.tar.gz(r-4.5-noble)sts_1.2.tar.gz(r-4.4-noble)
sts_1.2.tgz(r-4.4-emscripten)sts_1.2.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'))

Peer review:

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

openblascpp

1.48 score 402 downloads 15 exports 55 dependencies

Last updated 30 days agofrom:99acf58c89. Checks:OK: 2. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 25 2024
R-4.5-linux-x86_64OKNov 25 2024

Exports:esthcppestimateRegnsfindRepresentativeDocsheldoutLikelihoodlgaecpplpbdcppplot.STSplotRepresentativeDocsprint.STSprintRegnTablesprintTopWordsstssummary.STStopicExclusivitytopicSemanticCoherence

Dependencies:clicodetoolscolorspacedata.tabledoParallelfansifarverfastmatchforeachggplot2glmnetgluegtableisobandISOcodesiteratorsjsonlitelabelinglatticeldalifecyclemagrittrMASSMatrixmatrixStatsmgcvmunsellmvtnormnlmepillarpkgconfigquadprogquantedaR6RColorBrewerRcppRcppArmadilloRcppEigenrlangscalesshapeslamSnowballCstmstopwordsstringistringrsurvivaltibbleutf8vctrsviridisLitewithrxml2yaml