Package: gtstats 1.0.0.9000

Rubeshkumar Polani

gtstats: Beginner-Friendly Statistics and Publication-Ready Tables

Provides beginner-friendly functions for common descriptive and inferential statistical analyses, together with tools for creating publication-ready tables. The package includes data description, summary statistics, distribution assessment, group comparisons, effect sizes, correlations, proportions and rates with confidence intervals, crosstabs for epidemiological measures, plots, and modular table-building workflows. Statistical methods include unequal-variance comparisons described by Welch (1947) <doi:10.1093/biomet/34.1-2.28>, score confidence intervals described by Wilson (1927) <doi:10.1080/01621459.1927.10502953>, and robust variance assessment described by Brown and Forsythe (1974) <doi:10.1080/01621459.1974.10482955>.

Authors:Rubeshkumar Polani [aut, cre], Mogan Kaviprawin [aut], Manikandanesan Sakthivel [aut], Salin K Eliyas [aut], Yuvaraj Krishnamoorthy [aut]

gtstats_1.0.0.9000.tar.gz
gtstats_1.0.0.9000.zip(r-4.7-any)gtstats_1.0.0.9000.zip(r-4.6-any)gtstats_1.0.0.9000.zip(r-4.5-any)
gtstats_1.0.0.9000.tgz(r-4.6-any)gtstats_1.0.0.9000.tgz(r-4.5-any)
gtstats_1.0.0.9000.tar.gz(r-4.7-any)gtstats_1.0.0.9000.tar.gz(r-4.6-any)
gtstats_1.0.0.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
gtstats/json (API)

# Install 'gtstats' in R:
install.packages('gtstats', repos = c('https://thinkdenominator.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/thinkdenominator/gtstats/issues

Pkgdown/docs site:https://gtstats.thinkdenominator.com

Datasets:

On CRAN:

Conda:

5.56 score 148 downloads 29 exports 79 dependencies

Last updated from:ceebff9e50. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK356
source / vignettesOK287
linux-releaseOK338
macos-releaseOK285
macos-oldrelOK230
windows-develOK332
windows-releaseOK332
windows-oldrelOK320
wasm-releaseOK160

Exports:add_ciadd_padd_proportionadd_rateadd_rowadd_summaryadd_totalas_stats_tableassess_distributionassess_varianceassumptions_statscompare_groupscorrelationcrosstabscustomise_tabledenominators_statsdescribe_datadiagnostics_statseffect_sizeepi_tablegtstats_appplot_compareplot_correlationproportion_statsrate_statssave_outputsummary_tableto_flextableto_gt

Dependencies:askpassbase64encbigDbitopsbslibcachemclicommonmarkcpp11curldata.tabledigestdplyrevaluatefarverfastmapflextablefontawesomefontBitstreamVerafontLiberationfontquiverfsgdtoolsgenericsggplot2gluegtgtablehighrhtmltoolshtmlwidgetsisobandjquerylibjsonlitejuicyjuiceknitrlabelinglifecyclelitedownmagrittrmarkdownmemoisemimeofficeropensslpillarpkgconfigpurrrR6raggrappdirsRColorBrewerRcppreactablereactRrlangrmarkdownS7sassscalesstringistringrsyssystemfontstextshapingtibbletidyrtidyselecttinytexutf8uuidV8vctrsviridisLitewithrxfunxml2yamlzip

Birth-weight case study: from data to Table 1
From raw clinical codes to a report-ready table | 1. Prepare readable data | 2. Start with the data, not a test | 3. Assess selected continuous variables | 4. Build Table 1 | 5. Ask a focused inferential question | What this workflow deliberately avoids

Last update: 2026-09-28
Started: 2026-08-08

Function options
Function options at a glance | Guided interface | gtstats_app() | Choose the right table function | 1. Understand the data | describe_data() | assess_distribution() | assess_variance() | 2. Describe and compare | summary_table() | Table-building helpers | add_ci() | add_summary() (incremental builder) | Specialist and structural helpers | compare_groups() | Exact test = "auto" algorithm | effect_size() | correlation() | 3. Epidemiology | epi_table() | proportion_stats() | rate_stats() | crosstabs() | 4. Plots, inspection, and output | plot_compare() | plot_correlation() | Audit functions | customise_table() | to_gt() | to_flextable() | save_output() | The shortest useful workflow

Last update: 2026-09-28
Started: 2026-08-08

Start here: a simple gtstats workflow
The workflow | Install and load | 1. Understand a dataset | Built-in teaching datasets | Prefer a guided interface? | 2. Assess distribution for descriptive reporting | How Auto chooses an inferential test | 3. Create a Table 1 | 4. Compare one variable | 5. Customise and export

Last update: 2026-09-28
Started: 2026-04-11

Citing gtstats
Citation | BibTeX | Reproducibility

Last update: 2026-08-30
Started: 2026-08-30

Inferential Tests and Assumptions
Quantify the magnitude separately | Default selection policy | Ordinal values: make the meaning explicit | Proportions are estimates, not automatically tests | Continuous outcomes | Summary-table p-values | Correlation | Rates | Inspect what was checked

Last update: 2026-08-30
Started: 2026-08-08

Missing data and denominators
The policy in one minute | Key terms | Start by describing missingness | Descriptive tables: percentage denominators | Proportions and confidence intervals | Rates use complete event-time records | Cross-tabs, comparisons, and correlations | Distribution assessment | Reporting checklist | What gtstats does not do automatically

Last update: 2026-08-30
Started: 2026-08-08

Summary Tables and Customisation
Introduction | A minimal table | Adding an overall column | Summary-table options at a glance | How global choices and variable exceptions work | Which layout option controls which columns? | Compact binary variables | Precision and labels | Choosing percentage denominators and missing rows | Showing the denominator in every categorical cell | Mean with a confidence interval | Adding proportion rows | Adding a total row | Adding p-values | Specifying tests manually | Paired tests | Adding rate rows | Adding custom rows | The full workflow | Styling the output | Complete customisation guide | A journal-style recipe | Relabelling without changing the analysis | A clean table without explanatory notes | Exporting to Word | Summary

Last update: 2026-08-30
Started: 2026-04-11

Teaching datasets
Built-in teaching datasets | birthwt: real clinical teaching data | trial_data: independent groups and rates | paired_data: repeated measurements | outbreak_data: line-list outbreak analysis | surveillance_data: aggregate surveillance rates | Provenance and reuse | Transparency note

Last update: 2026-08-30
Started: 2026-08-08

Using the gtstats App
gtstats App Manual | Launch the app | Close the app safely | App dependencies | Recommended app workflow | Data tab | Data Prep tab | Uploading files | Preview and data dictionary | Reusable data code | Understand tab | Describe data | Assess distribution | Show spread by group | Code panel | Summary table tab | Choose a group | Select variables | Optional ingredients | Summary-statistic overrides | Presentation controls | Build the table layer by layer | Add p-values | Customise appearance | Preview, export, and code | Epi table tab | Customise table tab | Compare groups tab | Test control | Result and Audit panels | Correlation tab | Comparison plots | Crosstabs tab | History tab | Help tab | Saving outputs | Troubleshooting | The app does not open | Excel upload gives an error | A table or comparison is blank | A variable seems to have the wrong type | I see (blank) in a result | Chrome or a browser crashes | Best practice

Last update: 2026-08-30
Started: 2026-08-10

Readme and manuals

Help Manual

Help pageTopics
Add confidence intervals to a summary tableadd_ci
Add p-values to a descriptive tableadd_p
Add a proportion row to a descriptive tableadd_proportion
Add an event-rate rowadd_rate
Add a custom row to a descriptive tableadd_row
Add summary rows to a descriptive tableadd_summary
Add total counts to a descriptive tableadd_total
Convert an already summarised data frame into a publication tableas_stats_table
Assess the empirical distribution of continuous variablesassess_distribution
Assess variation of continuous variables across groupsassess_variance
Inspect statistical assumptionsassumptions_stats
Low birth weight databirthwt
Compare groups using common inferential testscompare_groups
Correlation analysis for one pair or several continuous variablescorrelation
Cross-tabulations with optional 2x2 epidemiological measurescrosstabs
Customize a gtstats tablecustomise_table
Inspect statistical denominatorsdenominators_stats
Understand a dataset before analysisdescribe_data
Inspect statistical diagnosticsdiagnostics_stats
Estimate an effect sizeeffect_size
Outbreak and surveillance summary tableepi_table
Launch the gtstats graphical interfacegtstats_app
Oswego foodborne-outbreak line listoutbreak_data
Paired follow-up teaching datapaired_data
Plot a group comparisonplot_compare
Plot the relationship between two continuous variablesplot_correlation
Print a gtstats compare objectprint.gt_compare
Print a gtstats correlation objectprint.gt_correlation
Print an already summarised gtstats tableprint.gt_data_table
Print a gtstats describe objectprint.gt_describe
Print a gtstats distribution objectprint.gt_distribution
Print a gtstats effect-size objectprint.gt_effect
Print an outbreak and surveillance tableprint.gt_epi_table
Print a gtstats proportion objectprint.gt_prop
Print a gtstats rate objectprint.gt_rate
Print a gtstats 2x2 table objectprint.gt_twobytwo
Print a gtstats variance objectprint.gt_variance
Print a descriptive tableprint.gtstats_summary
Proportion statisticsproportion_stats
Incidence rate with exact Poisson confidence intervalrate_stats
Save a gtstats table or plotsave_output
Create a summary table buildersummary_table
Archived weekly US hospital-admission surveillance datasurveillance_data
Convert a gtstats object to flextableto_flextable
Convert a gtstats result to a gt tableto_gt
Three-arm clinical trial teaching datatrial_data