Journal of Statistical Software (Nov 2013)

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

  • Philip Leifeld

DOI
https://doi.org/10.18637/jss.v055.i08
Journal volume & issue
Vol. 55, no. 1
pp. 1 – 24

Abstract

Read online

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.