Skip to content

sts

Estimation of the Structural Topic and Sentiment-Discourse Model for Text Analysis

v1.4 · Jan 25, 2025 · MIT + file LICENSE

Description

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>.

Downloads

211

Last 30 days

21631st

560

Last 90 days

2.1K

Last year

Trend: +19.2% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Dependency Network

Dependencies Reverse dependencies glmnet matrixStats slam foreach doParallel stm Matrix mvtnorm ggplot2 tm sts

Version History

new 1.4 Mar 10, 2026
updated 1.4 ← 1.3 diff Jan 25, 2025
updated 1.3 ← 1.2 diff Jan 16, 2025
updated 1.2 ← 1.1 diff Nov 24, 2024
updated 1.1 ← 1.0 diff Nov 5, 2024
new 1.0 Sep 16, 2024