IDEAS home Printed from https://ideas.repec.org/a/jss/jstsof/v055i08.html

texreg: Conversion of Statistical Model Output in R to LATEX and HTML Tables

Author

Listed:
  • Leifeld, Philip

Abstract

A recurrent task in applied statistics is the (mostly manual) preparation of model output for inclusion in LATEX, Microsoft Word, or HTML documents – usually with more than one model presented in a single table along with several goodness-of-fit statistics. However, statistical models in R have diverse object structures and summary methods, which makes this process cumbersome. This article first develops a set of guidelines for converting statistical model output to LATEX and HTML tables, then assesses to what extent existing packages meet these requirements, and finally presents the texreg package as a solution that meets all of the criteria set out in the beginning. After providing various usage examples, a blueprint for writing custom model extensions is proposed.

Suggested Citation

  • Leifeld, Philip, 2013. "texreg: Conversion of Statistical Model Output in R to LATEX and HTML Tables," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 55(i08).
  • Handle: RePEc:jss:jstsof:v:055:i08
    DOI: http://hdl.handle.net/10.18637/jss.v055.i08
    as

    Download full text from publisher

    File URL: https://www.jstatsoft.org/index.php/jss/article/view/v055i08/v55i08.pdf
    Download Restriction: no

    File URL: https://www.jstatsoft.org/index.php/jss/article/downloadSuppFile/v055i08/texreg_1.30.tar.gz
    Download Restriction: no

    File URL: https://www.jstatsoft.org/index.php/jss/article/downloadSuppFile/v055i08/v55i08.R
    Download Restriction: no

    File URL: https://libkey.io/http://hdl.handle.net/10.18637/jss.v055.i08?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
    ---><---

    References listed on IDEAS

    as
    1. Hunter, David R. & Handcock, Mark S. & Butts, Carter T. & Goodreau, Steven M. & Morris, Martina, 2008. "ergm: A Package to Fit, Simulate and Diagnose Exponential-Family Models for Networks," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 24(i03).
    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. Darko Cherepnalkoski & Andreas Karpf & Igor Mozetič & Miha Grčar, 2016. "Cohesion and Coalition Formation in the European Parliament: Roll-Call Votes and Twitter Activities," PLOS ONE, Public Library of Science, vol. 11(11), pages 1-27, November.
    2. Marc Esteve-Del-Valle, 2022. "Homophily and Polarization in Twitter Political Networks: A Cross-Country Analysis," Media and Communication, Cogitatio Press, vol. 10(2), pages 81-92.
    3. Ma, Yonghong & Zhu, Enjia, 2025. "How network characteristics drive multi-layer innovation networks to achieve boundary-spanning convergence," Technology in Society, Elsevier, vol. 83(C).
    4. Neal, Zachary & Domagalski, Rachel & Yan, Xiaoqin, 2020. "Party Control as a Context for Homophily in Collaborations among US House Representatives, 1981 -- 2015," OSF Preprints qwdxs, Center for Open Science.
    5. Prochnow, Tyler & Patterson, Megan S. & Hartnell, Logan & West, Geoffrey & Umstattd Meyer, M. Renée, 2021. "Implications of race and ethnicity for child physical activity and social connections at summer care programs," Children and Youth Services Review, Elsevier, vol. 127(C).
    6. Krivitsky, Pavel N., 2017. "Using contrastive divergence to seed Monte Carlo MLE for exponential-family random graph models," Computational Statistics & Data Analysis, Elsevier, vol. 107(C), pages 149-161.
    7. Patience Pokuaa Gambrah & Qian Yu, 2025. "Smallholder farmers’ network structure: a case study in Ghana," Environment, Development and Sustainability: A Multidisciplinary Approach to the Theory and Practice of Sustainable Development, Springer, vol. 27(3), pages 1-17, March.
    8. Ma, Ding & Yu, Qian & Li, Jing & Ge, Mengni, 2021. "Innovation diffusion enabler or barrier: An investigation of international patenting based on temporal exponential random graph models," Technology in Society, Elsevier, vol. 64(C).
    9. De Nicola, Giacomo & Fritz, Cornelius & Mehrl, Marius & Kauermann, Göran, 2023. "Dependence matters: Statistical models to identify the drivers of tie formation in economic networks," Journal of Economic Behavior & Organization, Elsevier, vol. 215(C), pages 351-363.
    10. Changwei Yuan & Jinrui Zhu & Shuai Zhang & Jiannan Zhao & Shibo Zhu, 2024. "Analysis of the Spatial Correlation Network and Driving Mechanism of China’s Transportation Carbon Emission Intensity," Sustainability, MDPI, vol. 16(7), pages 1-23, April.
    11. Li, Yonglin & Zuo, Zhili & Cheng, Jinhua & Xu, Deyi, 2024. "Evolutionary characteristics and structural dependence determinants of global lithium trade network: An industry chain perspective," Resources Policy, Elsevier, vol. 99(C).
    12. Lasse Folke Henriksen & Stefano Ponte, 2018. "Public orchestration, social networks, and transnational environmental governance: Lessons from the aviation industry," Regulation & Governance, John Wiley & Sons, vol. 12(1), pages 23-45, March.
    13. Niles Breuer & Federico Varese, 2023. "The Structure of Trade-type and Governance-type Organized Crime Groups: A Network Study," The British Journal of Criminology, Centre for Crime and Justice Studies, vol. 63(4), pages 867-888.
    14. Pavel N. Krivitsky & Laura M. Koehly & Christopher Steven Marcum, 2020. "Exponential-Family Random Graph Models for Multi-Layer Networks," Psychometrika, Springer;The Psychometric Society, vol. 85(3), pages 630-659, September.
    15. Shahadat Uddin & Stephen Ong & Petr Matous, 2023. "Stakeholder engagement variability across public, private and public-private partnership projects: A data-driven network-based analysis," PLOS ONE, Public Library of Science, vol. 18(1), pages 1-22, January.
    16. Zenou, Yves & Lindquist, Matthew, 2014. "Key Players in Co-Offending Networks," CEPR Discussion Papers 9889, C.E.P.R. Discussion Papers.
    17. Christian Homburg & Theresa R. Schyma (née Morguet) & Sebastian Hohenberg & Yashar Atefi & Robin-Christopher M. Ruhnau, 2024. "“Coopetition” in the presence of team and individual incentives: Evidence from the advice network of a sales organization," Journal of the Academy of Marketing Science, Springer, vol. 52(2), pages 306-328, March.
    18. Emily Casleton & Daniel J. Nordman & Mark S. Kaiser, 2022. "Modeling Transitivity in Local Structure Graph Models," Sankhya A: The Indian Journal of Statistics, Springer;Indian Statistical Institute, vol. 84(1), pages 389-417, June.
    19. Wittstock, Nicolas, 2025. "The governmental origins of American innovation in clean technologies," Energy Policy, Elsevier, vol. 205(C).
    20. Suesse Thomas & Chambers Ray, 2018. "Using Social Network Information for Survey Estimation," Journal of Official Statistics, Sciendo, vol. 34(1), pages 181-209, March.

    More about this item

    Statistics

    Access and download statistics

    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:jss:jstsof:v:055:i08. 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: Christopher F. Baum (email available below). General contact details of provider: http://www.jstatsoft.org/ .

    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.