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. 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.
    2. 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.
    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. Matthias Schmid & Florian Wickler & Kelly O Maloney & Richard Mitchell & Nora Fenske & Andreas Mayr, 2013. "Boosted Beta Regression," PLOS ONE, Public Library of Science, vol. 8(4), pages 1-15, April.
    5. Paulus, Anne & Hagemann, Nina & Baaken, Marieke C. & Roilo, Stephanie & Alarcón-Segura, Viviana & Cord, Anna F. & Beckmann, Michael, 2022. "Landscape context and farm characteristics are key to farmers' adoption of agri-environmental schemes," Land Use Policy, Elsevier, vol. 121(C).
    6. Rutger Schilpzand & Jeroen Smits, 2025. "The Domestic Transition: Progress Towards Decent Living of Households in Low and Middle‐Income Countries," Journal of International Development, John Wiley & Sons, Ltd., vol. 37(2), pages 420-442, March.
    7. 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.
    8. Jorge I. Figueroa-Zúñiga & Cristian L. Bayes & Víctor Leiva & Shuangzhe Liu, 2022. "Robust beta regression modeling with errors-in-variables: a Bayesian approach and numerical applications," Statistical Papers, Springer, vol. 63(3), pages 919-942, June.
    9. 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.
    10. Ben Salah, Mhamed & Chambru, Cédric & Fourati, Maleke, 2024. "The colonial legacy of education: Evidence from Tunisia," Journal of Comparative Economics, Elsevier, vol. 52(4), pages 773-792.
    11. Muhammad Suhail Rizwan & Asifa Obaid & Dawood Ashraf, 2017. "The Impact of Corporate Social Responsibility on Default Risk: Empirical evidence from US Firms," Business & Economic Review, Institute of Management Sciences, Peshawar, Pakistan, vol. 9(3), pages 36-70, September.
    12. Korkeamäki, Timo & Virk, Nader & Wang, Haizhi & Wang, Peng, 2018. "Learning Chinese? The changing investment behavior of foreign institutions in the Chinese stock market," BOFIT Discussion Papers 19/2018, Bank of Finland Institute for Emerging Economies (BOFIT).
    13. 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.
    14. Takeshima, Hiroyuki & Liverpool-Tasie, Lenis Saweda O., 2015. "Fertilizer subsidies, political influence and local food prices in sub-Saharan Africa: Evidence from Nigeria," Food Policy, Elsevier, vol. 54(C), pages 11-24.
    15. Mustafa Ç. Korkmaz & Emrah Altun & Morad Alizadeh & M. El-Morshedy, 2021. "The Log Exponential-Power Distribution: Properties, Estimations and Quantile Regression Model," Mathematics, MDPI, vol. 9(21), pages 1-19, October.
    16. Silvia Balia, 2007. "Reporting expected longevity and smoking: evidence from the SHARE," Health, Econometrics and Data Group (HEDG) Working Papers 07/10, HEDG, c/o Department of Economics, University of York.
    17. Maria V. Sokolova, 2016. "Trade Re(Im)Balanced: The Role of Regional Trade Agreements," IHEID Working Papers 06-2016, Economics Section, The Graduate Institute of International Studies.
    18. 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.
    19. Baccini, Leonardo & Urpelainen, Johannes, 2012. "Legislative fractionalization and partisan shifts to the left increase the volatility of public energy R&D expenditures," LSE Research Online Documents on Economics 45571, London School of Economics and Political Science, LSE Library.
    20. 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).

    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.