{
  "_id": "6ac7803cde46216d5edd1023",
  "Package": "sts",
  "Type": "Package",
  "Title": "Estimation of the Structural Topic and Sentiment-Discourse Model\nfor Text Analysis",
  "Version": "1.4",
  "Date": "2025-01-25",
  "Author": "Shawn Mankad [aut, cre], Li Chen [aut]",
  "Authors@R": "c(person(given = \"Shawn\",\nfamily = \"Mankad\",\nrole = c(\"aut\", \"cre\"),\nemail = \"smankad@ncsu.edu\"),\nperson(given = \"Li\",\nfamily = \"Chen\",\nrole = \"aut\",\nemail=\"li.chen@cornell.edu\"))",
  "Maintainer": "Shawn Mankad <smankad@ncsu.edu>",
  "Description": "The Structural Topic and Sentiment-Discourse (STS) model\nallows researchers to estimate topic models with document-level\nmetadata that determines both topic prevalence and\nsentiment-discourse. The sentiment-discourse is modeled as a\ndocument-level latent variable for each topic that modulates\nthe word frequency within a topic. These latent topic\nsentiment-discourse variables are controlled by the\ndocument-level metadata. The STS model can be useful for\nregression analysis with text data in addition to topic\nmodeling’s traditional use of descriptive analysis. The method\nwas developed in Chen and Mankad (2024)\n<doi:10.1287/mnsc.2022.00261>.",
  "License": "MIT + file LICENSE",
  "VignetteBuilder": "knitr",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.2.1",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-10-08 11:30:39 UTC",
    "User": "root"
  },
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2025-01-25 23:00:02 UTC",
  "RemoteUrl": "https://github.com/cran/sts",
  "RemoteRef": "HEAD",
  "RemoteSha": "67c0b3f6f5e4e8774706a2c839728dd5977ae93f",
  "_user": "cran",
  "_type": "src",
  "_file": "sts_1.4.tar.gz",
  "_fileid": "https://r2.ropensci.org/09ad3beab565e149615ab34d17903cf69d32d31e23f0b0bfeb67c9704e2b0425",
  "_filesize": 1421730,
  "_sha256": "09ad3beab565e149615ab34d17903cf69d32d31e23f0b0bfeb67c9704e2b0425",
  "_expires": "2027-01-16T11:36:25.000Z",
  "_created": "2026-10-08T11:30:39.000Z",
  "_published": "2026-10-08T11:36:27.921Z",
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/37770071176",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 113288925330,
      "time": 187,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11547466330"
    },
    {
      "job": 113288925243,
      "time": 204,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11547401412"
    },
    {
      "job": 113288925471,
      "time": 139,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11547361263"
    },
    {
      "job": 113288925401,
      "time": 170,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11548655045"
    },
    {
      "job": 113287367240,
      "time": 248,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11548105206"
    },
    {
      "job": 113288925373,
      "time": 134,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11548025765"
    },
    {
      "job": 113288925394,
      "time": 294,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11547511542"
    },
    {
      "job": 113288925442,
      "time": 156,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11547436259"
    },
    {
      "job": 113288925469,
      "time": 250,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11548500472"
    },
    {
      "job": 113288925520,
      "time": 170,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11547406357"
    }
  ],
  "_upstream": "https://github.com/cran/sts",
  "_commit": {
    "id": "67c0b3f6f5e4e8774706a2c839728dd5977ae93f",
    "author": "Shawn Mankad <smankad@ncsu.edu>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 1.4\n",
    "time": 1737846002
  },
  "_maintainer": {
    "name": "Shawn Mankad",
    "email": "smankad@ncsu.edu"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppArmadillo",
      "role": "LinkingTo"
    },
    {
      "package": "glmnet",
      "role": "Imports"
    },
    {
      "package": "matrixStats",
      "role": "Imports"
    },
    {
      "package": "slam",
      "role": "Imports"
    },
    {
      "package": "foreach",
      "role": "Imports"
    },
    {
      "package": "doParallel",
      "role": "Imports"
    },
    {
      "package": "parallel",
      "role": "Imports"
    },
    {
      "package": "stm",
      "role": "Imports"
    },
    {
      "package": "Matrix",
      "role": "Imports"
    },
    {
      "package": "mvtnorm",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "tm",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 0,
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 630,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 301,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/sts"
  },
  "_searchresults": 2,
  "_topics": [
    "openblas",
    "cpp"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/sts.html",
    "LICENSE"
  ],
  "_realowner": "cran",
  "_cranurl": false,
  "_releases": [
    {
      "version": "1.0",
      "date": "2024-09-17"
    },
    {
      "version": "1.1",
      "date": "2024-11-06"
    },
    {
      "version": "1.2",
      "date": "2024-11-25"
    },
    {
      "version": "1.3",
      "date": "2025-01-17"
    },
    {
      "version": "1.4",
      "date": "2025-01-25"
    }
  ],
  "_exports": [
    "esthcpp",
    "estimateRegns",
    "findRepresentativeDocs",
    "heldoutLikelihood",
    "lgaecpp",
    "lpbdcpp",
    "plotRepresentativeDocs",
    "printRegnTables",
    "printTopWords",
    "sts",
    "topicExclusivity",
    "topicSemanticCoherence"
  ],
  "_help": [
    {
      "page": "sts-package",
      "title": "A Structural Topic and Sentiment-Discourse Model for Text Analysis",
      "topics": [
        "sts-package"
      ]
    },
    {
      "page": "estimateRegns",
      "title": "Regression Table Estimation",
      "topics": [
        "estimateRegns"
      ]
    },
    {
      "page": "findRepresentativeDocs",
      "title": "Function for Identifying Documents that Load Heavily on a Topic",
      "topics": [
        "findRepresentativeDocs"
      ]
    },
    {
      "page": "heldoutLikelihood",
      "title": "Compute Heldout Log-Likelihood",
      "topics": [
        "heldoutLikelihood"
      ]
    },
    {
      "page": "plot.STS",
      "title": "Function for plotting STS objects",
      "topics": [
        "plot.STS"
      ]
    },
    {
      "page": "plotRepresentativeDocs",
      "title": "Plot Documents that Load Heavily on a Topic",
      "topics": [
        "plotRepresentativeDocs"
      ]
    },
    {
      "page": "printRegnTables",
      "title": "Print Estimated Regression Tables",
      "topics": [
        "printRegnTables"
      ]
    },
    {
      "page": "printTopWords",
      "title": "Print Top Words that Load Heavily on each Topic",
      "topics": [
        "printTopWords"
      ]
    },
    {
      "page": "sts",
      "title": "Variational EM for the Structural Topic and Sentiment-Discourse (STS) Model",
      "topics": [
        "sts"
      ]
    },
    {
      "page": "summary.STS",
      "title": "Summary Function for the STS objects",
      "topics": [
        "print.STS",
        "summary.STS"
      ]
    },
    {
      "page": "topicExclusivity",
      "title": "Compute Exclusivity",
      "topics": [
        "topicExclusivity"
      ]
    },
    {
      "page": "topicSemanticCoherence",
      "title": "Compute Semantic Coherence",
      "topics": [
        "topicSemanticCoherence"
      ]
    }
  ],
  "_rundeps": [
    "BH",
    "cli",
    "codetools",
    "cpp11",
    "data.table",
    "doParallel",
    "farver",
    "fastmatch",
    "foreach",
    "ggplot2",
    "glmnet",
    "glue",
    "gtable",
    "isoband",
    "ISOcodes",
    "iterators",
    "jsonlite",
    "labeling",
    "lattice",
    "lda",
    "lifecycle",
    "magrittr",
    "Matrix",
    "matrixStats",
    "mvtnorm",
    "NLP",
    "quadprog",
    "quanteda",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "rlang",
    "S7",
    "scales",
    "shape",
    "slam",
    "SnowballC",
    "stm",
    "stopwords",
    "stringi",
    "stringr",
    "survival",
    "tm",
    "vctrs",
    "viridisLite",
    "withr",
    "xml2",
    "yaml"
  ],
  "_sysdeps": [
    {
      "shlib": "libblas",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.32+ds-5",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_vignettes": [
    {
      "source": "vignette.Rnw",
      "filename": "vignette.pdf",
      "title": "Using the STS package",
      "engine": "knitr::knitr",
      "headings": [],
      "created": "2025-01-17 18:30:02",
      "modified": "2025-01-17 18:30:02",
      "commits": 1
    }
  ],
  "_score": 2,
  "_indexed": true,
  "_nocasepkg": "sts",
  "_universes": [
    "cran"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.4",
      "date": "2026-10-08T11:33:38.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "67c0b3f6f5e4e8774706a2c839728dd5977ae93f",
      "fileid": "https://r2.ropensci.org/b9b70033334a83d2993833990cf797e2a5a36a181c927e317315dbfe818513f9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/37770071176"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.4",
      "date": "2026-10-08T11:33:47.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "67c0b3f6f5e4e8774706a2c839728dd5977ae93f",
      "fileid": "https://r2.ropensci.org/264a9c931b99b21c71a462bd484bfd718d61b0e68b675a87d2139f2e0df783b5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/37770071176"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.4",
      "date": "2026-10-08T11:32:52.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "67c0b3f6f5e4e8774706a2c839728dd5977ae93f",
      "fileid": "https://r2.ropensci.org/53c023bea329b16a1168869a9de921ac0dbb972a081d57072aedafd8c1b3a17e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/37770071176"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.4",
      "date": "2026-10-08T11:33:09.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "67c0b3f6f5e4e8774706a2c839728dd5977ae93f",
      "fileid": "https://r2.ropensci.org/8705b881d7784f94826af22a87cd1b4701285f1b82bd781983ef78210f627d96",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/37770071176"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.4",
      "date": "2026-10-08T11:33:21.000Z",
      "arch": "emscripten",
      "commit": "67c0b3f6f5e4e8774706a2c839728dd5977ae93f",
      "fileid": "https://r2.ropensci.org/cf760e3b63652e21aa68ae0b2f843215406a182461f8a9ad9005d500c6b31af5",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/37770071176"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.4",
      "date": "2026-10-08T11:35:01.000Z",
      "arch": "aarch64",
      "commit": "67c0b3f6f5e4e8774706a2c839728dd5977ae93f",
      "fileid": "https://r2.ropensci.org/1e66363887281f72436e72ce575c4740e34e98ab44ed46a7029bd70908cf9b38",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/37770071176"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.4",
      "date": "2026-10-08T11:32:17.000Z",
      "arch": "x86_64",
      "commit": "67c0b3f6f5e4e8774706a2c839728dd5977ae93f",
      "fileid": "https://r2.ropensci.org/f2107a9432ccbf5ad6fa762b74d66679e22339c8a6d125f47cb4ed65f63bee22",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/37770071176"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.4",
      "date": "2026-10-08T11:34:21.000Z",
      "arch": "aarch64",
      "commit": "67c0b3f6f5e4e8774706a2c839728dd5977ae93f",
      "fileid": "https://r2.ropensci.org/9c30fd748b1fc89d88aa9066f3faf3fd1e23e1b8c5fedf9974b2f431eb2134c1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/37770071176"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.4",
      "date": "2026-10-08T11:32:40.000Z",
      "arch": "x86_64",
      "commit": "67c0b3f6f5e4e8774706a2c839728dd5977ae93f",
      "fileid": "https://r2.ropensci.org/4b92e3e1c002f831f2ce1e59fbdf3b34e3089940c9d7a391bde0a4a2bc0c647f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/37770071176"
    }
  ]
}