Skip to contents

R port of the Python module morie.tables_pub. Builds Table 1 (baseline characteristics), regression tables, odds-ratio and hazard-ratio tables, correlation matrices, model comparison tables, ANOVA tables, summary-statistics tables and treatment-effect tables.

Details

Output rendering goes through knitr::kable for "latex", "html", "markdown", "pipe" and "rst" formats; "dataframe" returns the raw data.frame, and "text" returns utils::capture.output on the frame. The gt package is supported as an optional richer-output backend when installed (Suggests-gated).

Functions consume R-native model objects:

  • regression_table accepts lm, glm or any object responding to coef, vcov and confint.

  • odds_ratio_table accepts a fitted glm with family = binomial().

  • hazard_ratio_table accepts a coxph fit, or per-parameter beta, se and p vectors.

  • anova_table wraps stats::anova / car::Anova.