Iām excited to announce the release of SimtablR, a new R package designed to streamline the most common analytical tasks in epidemiology and clinical research
. I use R to do research in epidemiology and often had to use multiple functions, and repeat work in order to get tables that were actually informative. Now, I can do all of it using just 3 functions!
SimtablR focuses on three main workflows:
tb( ) generates publication-ready frequency tables that handle:
Row/Col/Total percentages automatically;
Statistical tests (Chi-squared, Fisher, etc.) with one argument;
Calculates Prevalence Ratios (PR) or Odds Ratios (OR) with 95% CIs directly within the table function
Fully passable to Flextable to export directly into Powerpoint or Word!
diag_test( ) evaluates a binary test against a gold standard in one line.
Returns a clean confusion matrix
Automatically calculates Sensitivity, Specificity, PPV, NPV, LR+, LR-, and Accuracy with CIs.
regtab( ) does Multi-Outcome Regression Summaries
Fits multiple GLMs (Poisson, Logistic, Gaussian) simultaneously and
Returns a single, wide-format table of coefficients (ORs/IRRs) ready for publication.
Links:
GitHub & Documentation: https://matheustg-14.github.io/SimtablR/
Vignette Tutorial: https://matheustg-14.github.io/SimtablR/articles/tb_tutorial.html
I'd love to hear your feedback, feature requests, or bug reports on GitHub! This is my first Rpackage and I would love to expand it to iron out any idiosyncrasies of my workflow and expand its use-cases.