Build a publication-ready Table 1 of baseline characteristics in R with gtsummary — grouped by treatment, with an automatic test per row. Watch the screencast and copy the code.
The baseline-characteristics table that opens almost every clinical paper — in a few lines of R.