estimateeffect
EstimateEffect is a function in the R package stm used to quantify how document metadata covariates influence topic distributions in a structural topic model. It enables researchers to assess how factors such as author, time, or demographics relate to the prevalence of topics across documents, and, optionally, how covariates relate to the content of topics.
Usage and input: After fitting a stm model (for example with the stm function), estimateEffect takes a
Output and interpretation: The result is an object with topic-specific effect estimates across covariate values. Users
Notes: EstimateEffect is central for exploring how metadata shapes topic structure in stm analyses, complementing the