Reproducible Summary Tables with the gtsummary Package

Abstract:

The gtsummary package provides an elegant and flexible way to create publication-ready summary tables in R. A critical part of the work of statisticians, data scientists, and analysts is summarizing data sets and regression models in R and publishing or sharing polished summary tables. The gtsummary package was created to streamline these everyday analysis tasks by allowing users to easily create reproducible summaries of data sets, regression models, survey data, and survival data with a simple interface and very little code. The package follows a tidy framework, making it easy to integrate with standard data workflows, and offers many table customization features through function arguments, helper functions, and custom themes.

Cite PDF Tweet

Published

June 21, 2021

Received

Jan 15, 2021

DOI

10.32614/RJ-2021-053

Volume

Pages

13/1

570 - 580

Supplementary materials

Supplementary materials are available in addition to this article. It can be downloaded at RJ-2021-053.zip

Footnotes

    References

    Reuse

    Text and figures are licensed under Creative Commons Attribution CC BY 4.0. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".

    Citation

    For attribution, please cite this work as

    Sjoberg, et al., "The R Journal: Reproducible Summary Tables with the gtsummary Package", The R Journal, 2021

    BibTeX citation

    @article{RJ-2021-053,
      author = {Sjoberg, Daniel D. and Whiting, Karissa and Curry, Michael and Lavery, Jessica A. and Larmarange, Joseph},
      title = {The R Journal: Reproducible Summary Tables with the gtsummary Package},
      journal = {The R Journal},
      year = {2021},
      note = {https://doi.org/10.32614/RJ-2021-053},
      doi = {10.32614/RJ-2021-053},
      volume = {13},
      issue = {1},
      issn = {2073-4859},
      pages = {570-580}
    }