Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ man/
npm-debug.log
inst/doc
tests/testthat/Rplots.pdf
trial.omv
/trial.omv
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cff-version: 1.2.0
title: "SummaryTables: Publication-Ready Summary Tables for Jamovi"
title: "SummaryTables: Publication-Ready Summary Tables for jamovi"
message: >-
If you use this software, please cite it using the
metadata from this file.
Expand Down
20 changes: 6 additions & 14 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: SummaryTables
Title: Publication-Ready Summary Tables for Jamovi
Version: 1.3.2
Title: Publication-Ready Summary Tables for jamovi
Version: 1.3.3
Authors@R:
person("Nour Edin", "Darwish", , "nouredindarwish@gmail.com", role = c("aut", "cre"),
comment = c(ORCID = "0009-0009-5527-4539"))
Expand All @@ -27,30 +27,22 @@ BugReports: https://github.com/NourEdinDarwish/SummaryTables/issues
Depends:
R (>= 4.1)
Imports:
broom.helpers (>= 1.22.0),
broom.helpers,
car,
cards (>= 0.7.1),
cardx (>= 0.3.1),
cli,
cardx,
datawizard,
dplyr,
effectsize,
flextable,
forcats,
gt,
gtsummary (>= 2.5.0.9001),
gtsummary,
jmvcore (>= 0.8.5),
parameters,
R6,
rlang,
smd,
survival,
tidyr
Remotes:
larmarange/broom.helpers@96d2cae,
insightsengineering/cards@v0.7.1,
insightsengineering/cardx@v0.3.1,
ddsjoberg/gtsummary@952b665
survival
Config/roxygen2/version: 8.0.0
Encoding: UTF-8
LazyData: true
Expand Down
8 changes: 8 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## SummaryTables 1.3.3

* Added the Trial dataset to jamovi's Data Library.
* Improved variable selection in Cross Table and Likert Table.
* Fixed an issue with Confidence Interval (CI) formatting.
* Improved statistical test labels.
* General bug-fixes and improvements.

## SummaryTables 1.3.2

* Added the missing "CI = Confidence Interval" abbreviation source note to Survival Tables.
Expand Down
2 changes: 1 addition & 1 deletion R/00jmv.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
.jmvrefs <- list(
`SummaryTables`=list(
`type`="software",
`title`="SummaryTables: Publication-Ready Summary Tables for Jamovi",
`title`="SummaryTables: Publication-Ready Summary Tables for jamovi",
`author`="Darwish, N. E.",
`year`=2026,
`publisher`="https://doi.org/10.5281/zenodo.18902312",
Expand Down
27 changes: 23 additions & 4 deletions R/pipeline.R
Original file line number Diff line number Diff line change
Expand Up @@ -363,11 +363,30 @@ pipeAddCi <- function(

# Pattern -----------------------------------------------------------------
statsWithParens <- c("meanSd", "medianIqr", "medianRange", "nPercent", "eda")

effectiveContStats <- stats::setNames(
rep(options$statContDefault, length(varsCont)),
varsCont
)
for (item in options$statContSpecific) {
if (item$stat != "useDefault") {
effectiveContStats[[item$var]] <- item$stat
}
}

effectiveCatStats <- stats::setNames(
rep(options$statCatDefault, length(varsCat)),
varsCat
)
for (item in options$statCatSpecific) {
if (item$stat != "useDefault") {
effectiveCatStats[[item$var]] <- item$stat
}
}

selectedStats <- c(
options$statContDefault,
options$statCatDefault,
vapply(options$statContSpecific, \(x) x$stat, character(1)),
vapply(options$statCatSpecific, \(x) x$stat, character(1))
effectiveContStats,
effectiveCatStats
)
useSquareBrackets <- any(selectedStats %in% statsWithParens)

Expand Down
Binary file added data/Trial.omv
Binary file not shown.
Binary file modified docs/assets/default-test-continuous.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/assets/per-variable-tests.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/user-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ The module automatically selects appropriate statistical tests based on your dat
![Screenshot showing the default test dropdown for continuous variables with parametric and non-parametric options](assets/default-test-continuous.png){ loading=lazy width="500" }
</figure>

* **Parametric (Default):** Uses the independent t-test (not assuming equal variance) for 2 groups, or one-way ANOVA (not assuming equal variance) for >2 groups.
* **Parametric (Default):** Uses the independent t-test (not assuming equal variances) for 2 groups, or one-way ANOVA (not assuming equal variances) for >2 groups.
* **Non-parametric:** Uses the Wilcoxon rank-sum test for 2 groups, or Kruskal-Wallis rank-sum test for >2 groups.

!!! info "Grouping Variable in the Continuous Table"
Expand Down
8 changes: 6 additions & 2 deletions jamovi/0000.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
title: Publication-Ready Summary Tables
name: SummaryTables
version: 1.3.2
version: 1.3.3
jms: '1.0'
authors:
- Nour Edin Darwish
maintainer: Nour Edin Darwish <nouredindarwish@gmail.com>
date: '2026-05-24'
date: '2026-07-15'
type: R
description: >-
A comprehensive module for creating publication-ready summary and regression
Expand Down Expand Up @@ -155,6 +155,10 @@ analyses:
table with hazard ratios, confidence intervals, and p-values. Includes
global p-values, event counts, significance stars, and p-value
adjustments.
datasets:
- name: Trial
path: Trial.omv
description: A simulated dataset of 200 patients who received Drug A or Drug B.
usesNative: true
minApp: 2.7.12

Expand Down
2 changes: 1 addition & 1 deletion jamovi/00refs.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
refs:
SummaryTables:
type: "software"
title: "SummaryTables: Publication-Ready Summary Tables for Jamovi"
title: "SummaryTables: Publication-Ready Summary Tables for jamovi"
author: Darwish, N. E.
year: 2026
publisher: "https://doi.org/10.5281/zenodo.18902312"
Expand Down
8 changes: 4 additions & 4 deletions jamovi/tblcontinuous.a.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -241,11 +241,11 @@ options:
name: nonparametric
- title: t-test
name: t.test
- title: t-test (equal variance)
- title: t-test (equal variances)
name: t.test.equalVar
- title: ANOVA
name: oneway.test
- title: ANOVA (equal variance)
- title: ANOVA (equal variances)
name: oneway.test.equalVar
- title: Wilcoxon rank-sum
name: wilcox.test
Expand All @@ -268,11 +268,11 @@ options:
name: useDefault
- title: t-test
name: t.test
- title: t-test (equal variance)
- title: t-test (equal variances)
name: t.test.equalVar
- title: ANOVA
name: oneway.test
- title: ANOVA (equal variance)
- title: ANOVA (equal variances)
name: oneway.test.equalVar
- title: Wilcoxon rank-sum
name: wilcox.test
Expand Down
2 changes: 2 additions & 0 deletions jamovi/tblcross.u.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ children:
- type: VariableSupplier
persistentItems: false
stretchFactor: 1
permitted:
- factor
children:
- type: TargetLayoutBox
children:
Expand Down
2 changes: 2 additions & 0 deletions jamovi/tbllikert.u.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ children:
- type: VariableSupplier
persistentItems: false
stretchFactor: 1
permitted:
- factor
children:
- type: TargetLayoutBox
children:
Expand Down
12 changes: 6 additions & 6 deletions jamovi/tblsummary.a.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ options:
options:
- title: t-test
name: t.test
- title: t-test (equal variance)
- title: t-test (equal variances)
name: t.test.equalVar
- title: Wilcoxon rank-sum
name: wilcox.test
Expand All @@ -431,7 +431,7 @@ options:
name: useDefault
- title: t-test
name: t.test
- title: t-test (equal variance)
- title: t-test (equal variances)
name: t.test.equalVar
- title: Wilcoxon rank-sum
name: wilcox.test
Expand Down Expand Up @@ -584,11 +584,11 @@ options:
name: nonparametric
- title: t-test
name: t.test
- title: t-test (equal variance)
- title: t-test (equal variances)
name: t.test.equalVar
- title: ANOVA
name: oneway.test
- title: ANOVA (equal variance)
- title: ANOVA (equal variances)
name: oneway.test.equalVar
- title: Wilcoxon rank-sum
name: wilcox.test
Expand All @@ -611,11 +611,11 @@ options:
name: useDefault
- title: t-test
name: t.test
- title: t-test (equal variance)
- title: t-test (equal variances)
name: t.test.equalVar
- title: ANOVA
name: oneway.test
- title: ANOVA (equal variance)
- title: ANOVA (equal variances)
name: oneway.test.equalVar
- title: Wilcoxon rank-sum
name: wilcox.test
Expand Down