IDEAS home Printed from https://ideas.repec.org/a/spr/alstar/v108y2024i2d10.1007_s10182-023-00485-9.html
   My bibliography  Save this article

A Bayesian approach to modeling topic-metadata relationships

Author

Listed:
  • Patrick Schulze

    (LMU)

  • Simon Wiegrebe

    (LMU
    University of Regensburg)

  • Paul W. Thurner

    (LMU)

  • Christian Heumann

    (LMU)

  • Matthias Aßenmacher

    (LMU)

Abstract

The objective of advanced topic modeling is not only to explore latent topical structures, but also to estimate relationships between the discovered topics and theoretically relevant metadata. Methods used to estimate such relationships must take into account that the topical structure is not directly observed, but instead being estimated itself in an unsupervised fashion, usually by common topic models. A frequently used procedure to achieve this is the method of composition, a Monte Carlo sampling technique performing multiple repeated linear regressions of sampled topic proportions on metadata covariates. In this paper, we propose two modifications of this approach: First, we substantially refine the existing implementation of the method of composition from the R package stm by replacing linear regression with the more appropriate Beta regression. Second, we provide a fundamental enhancement of the entire estimation framework by substituting the current blending of frequentist and Bayesian methods with a fully Bayesian approach. This allows for a more appropriate quantification of uncertainty. We illustrate our improved methodology by investigating relationships between Twitter posts by German parliamentarians and different metadata covariates related to their electoral districts, using the structural topic model to estimate topic proportions.

Suggested Citation

  • Patrick Schulze & Simon Wiegrebe & Paul W. Thurner & Christian Heumann & Matthias Aßenmacher, 2024. "A Bayesian approach to modeling topic-metadata relationships," AStA Advances in Statistical Analysis, Springer;German Statistical Society, vol. 108(2), pages 333-349, June.
  • Handle: RePEc:spr:alstar:v:108:y:2024:i:2:d:10.1007_s10182-023-00485-9
    DOI: 10.1007/s10182-023-00485-9
    as

    Download full text from publisher

    File URL: http://link.springer.com/10.1007/s10182-023-00485-9
    File Function: Abstract
    Download Restriction: Access to the full text of the articles in this series is restricted.

    File URL: https://libkey.io/10.1007/s10182-023-00485-9?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to search for a different version of it.

    References listed on IDEAS

    as
    1. Silvia Ferrari & Francisco Cribari-Neto, 2004. "Beta Regression for Modelling Rates and Proportions," Journal of Applied Statistics, Taylor & Francis Journals, vol. 31(7), pages 799-815.
    2. Lucas, Christopher & Nielsen, Richard A. & Roberts, Margaret E. & Stewart, Brandon M. & Storer, Alex & Tingley, Dustin, 2015. "Computer-Assisted Text Analysis for Comparative Politics," Political Analysis, Cambridge University Press, vol. 23(2), pages 254-277, April.
    3. Shawn Treier & Simon Jackman, 2008. "Democracy as a Latent Variable," American Journal of Political Science, John Wiley & Sons, vol. 52(1), pages 201-217, January.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Edward Kerby & Alexander Moradi & Hanjo Odendaal, 2025. "African time travellers: What can we learn from 500 years of written accounts?," Economic History Review, Economic History Society, vol. 78(1), pages 295-332, February.
    2. David Ardia & Keven Bluteau & Mohammad‐Abbas Meghani, 2024. "Thirty years of academic finance," Journal of Economic Surveys, Wiley Blackwell, vol. 38(3), pages 1008-1042, July.
    3. Rajius Idzalika & Thomas Kneib & Inmaculada Martinez-Zarzoso, 2019. "The effect of income on democracy revisited a flexible distributional approach," Empirical Economics, Springer, vol. 56(4), pages 1207-1230, April.
    4. Domenico Piccolo & Rosaria Simone, 2019. "The class of cub models: statistical foundations, inferential issues and empirical evidence," Statistical Methods & Applications, Springer;Società Italiana di Statistica, vol. 28(3), pages 389-435, September.
    5. Yayan Hernuryadin & Koji Kotani & Tatsuyoshi Saijo, 2020. "Time Preferences of Food Producers: Does “Cultivate and Grow” Matter?," Land Economics, University of Wisconsin Press, vol. 96(1), pages 132-148.
    6. Mhamed Ben Salah & Cédric Chambru & Maleke Fourati, 2022. "The colonial legacy of education: evidence from of Tunisia," ECON - Working Papers 411, Department of Economics - University of Zurich, revised Sep 2024.
    7. Ameztegui, Aitor & Coll, Lluís & Messier, Christian, 2015. "Modelling the effect of climate-induced changes in recruitment and juvenile growth on mixed-forest dynamics: The case of montane–subalpine Pyrenean ecotones," Ecological Modelling, Elsevier, vol. 313(C), pages 84-93.
    8. Sokolova, Maria V., 2016. "Exchange Rates, International Trade and Growth: Re-Evaluation of Undervaluation," Conference papers 332790, Purdue University, Center for Global Trade Analysis, Global Trade Analysis Project.
    9. Grün, Bettina & Kosmidis, Ioannis & Zeileis, Achim, 2012. "Extended Beta Regression in R: Shaken, Stirred, Mixed, and Partitioned," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 48(i11).
    10. Dries P.J. Kuijper & Jakub W. Bubnicki & Marcin Churski & Bjorn Mols & Pim van Hooft, 2015. "Context dependence of risk effects: wolves and tree logs create patches of fear in an old-growth forest," Behavioral Ecology, International Society for Behavioral Ecology, vol. 26(6), pages 1558-1568.
    11. Guillermo Martínez-Flórez & Artur J. Lemonte & Germán Moreno-Arenas & Roger Tovar-Falón, 2022. "The Bivariate Unit-Sinh-Normal Distribution and Its Related Regression Model," Mathematics, MDPI, vol. 10(17), pages 1-26, August.
    12. Sahoo, Dukhabandhu & Mohanty, Pritisudha & Mishra, Surbhi & Behera, Manash & Mohapatra, Souryabrata, 2024. "Does climate-smart agriculture technology improve the subjective well-being of farmers? Evidence from micro-level data," MPRA Paper 123955, University Library of Munich, Germany.
    13. Akoh Fabien Yao & Maxime Sèbe & Laura Recuero Virto & Abdelhak Nassiri & Hervé Dumez, 2024. "The effect of LNG bunkering on port competitiveness using multilevel data analysis [L'effet du soutage par GNL sur la compétitivité des ports à l'aide de l'analyse de données à plusieurs niveaux]," Post-Print hal-04611804, HAL.
    14. Kübler, Raoul V. & Manke, Kai & Pauwels, Koen, 2025. "I like, I share, I vote: Mapping the dynamic system of political marketing," Journal of Business Research, Elsevier, vol. 186(C).
    15. Jule Krüger & Ragnhild Nordås, 2020. "A latent variable approach to measuring wartime sexual violence," Journal of Peace Research, Peace Research Institute Oslo, vol. 57(6), pages 728-739, November.
    16. Qin Ma & Yanjun Su & Chunyue Niu & Qin Ma & Tianyu Hu & Xiangzhong Luo & Xiaonan Tai & Tong Qiu & Yao Zhang & Roger C. Bales & Lingli Liu & Maggi Kelly & Qinghua Guo, 2023. "Tree mortality during long-term droughts is lower in structurally complex forest stands," Nature Communications, Nature, vol. 14(1), pages 1-11, December.
    17. Mohamed M. Mostafa, 2023. "A one-hundred-year structural topic modeling analysis of the knowledge structure of international management research," Quality & Quantity: International Journal of Methodology, Springer, vol. 57(4), pages 3905-3935, August.
    18. Maria De Paola & Vincenzo Scoppa, 2012. "The Causal Impact Of Closeness On Electoral Participation Exploiting The Italian Dual Ballot System," Working Papers 201203, Università della Calabria, Dipartimento di Economia, Statistica e Finanza "Giovanni Anania" - DESF.
    19. Parrish Bergquist & Christopher Warshaw, 2023. "How climate policy commitments influence energy systems and the economies of US states," Nature Communications, Nature, vol. 14(1), pages 1-9, December.
    20. Piotr Archiciński & Arkadiusz Przybysz & Daria Sikorska & Marzena Wińska-Krysiak & Anderson Rodrigo Da Silva & Piotr Sikorski, 2024. "Conservation Management Practices for Biodiversity Preservation in Urban Informal Green Spaces: Lessons from Central European City," Land, MDPI, vol. 13(6), pages 1-22, May.

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:spr:alstar:v:108:y:2024:i:2:d:10.1007_s10182-023-00485-9. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Sonal Shukla or Springer Nature Abstracting and Indexing (email available below). General contact details of provider: http://www.springer.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.