
Changelog
TOSTER v0.9.0
New Features
New
trans_rank_prob()function for transforming probability-scale effect sizes between four scales: probability (concordance), difference (rank-biserial), log-odds, and odds. Supports bidirectional transformation viafromandtoarguments with delta-method standard errors and monotonic CI endpoint mapping.brunner_munzel()gains ascaleargument to report results on alternative scales (“probability”, “difference”, “logodds”, “odds”) without changing the underlying test. The defaultscale = "probability"preserves existing behavior.ses_calc()estimate labels now use probability notation (e.g.,P(X>Y) - P(X<Y)instead ofRank-Biserial Correlation). The$methodstring and data frame row names retain human-readable names. Code that parsesnames(result$estimate)may need updating.ses_calc()paired sample labels useP(Z>0)notation (where Z = X - Y); one-sample labels useP(X>0).-
Effect size calculators now support hypothesis testing and
htestoutput:-
ses_calcandboot_ses_calcupdated withoutput,alternative, andnull.valuearguments- Default output is now
"htest"class; useoutput = "data.frame"for legacy format - Supports
"two.sided","less","greater","equivalence", and"minimal.effect"alternatives - New Agresti/Lehmann placement-based SE method (
se_method = "agresti") with log-odds scale hypothesis testing - Continuity correction for boundary cases (complete separation)
- Default output is now
-
smd_calcandboot_smd_calcupdated withoutput,alternative,null.value, andtest_methodarguments- Default output is now
"htest"class; useoutput = "data.frame"for legacy format - Supports the same alternative hypothesis options as
ses_calc -
test_methodargument ("z"or"t") controls the reference distribution forsmd_calc - Degrees of freedom included in output when
test_method = "t" - Bootstrap p-values for
boot_smd_calccomputed from empirical distribution - New
denomargument for direct denominator selection ("z","rm","pooled","avg","glass1","glass2"), overridingglass,rm_correction, andvar.equalas needed; informative messages on conflicts
- Default output is now
-
-
Added
hodges_lehmannfunction for robust location testing- Implements Hodges-Lehmann estimators (HL1 for one-sample/paired, HL2 for two-sample)
- Supports exact permutation, randomization, and asymptotic (KDE-based) inference
- Full support for equivalence and minimal effect testing
- Consistent sign convention with
wilcox.test(x - y for two-sample tests) - Formula and default methods available
Added
perm_t_testfunction to allow for permutation tests for equivalence using TOST-
Added
plot_htest_est()function to create simple estimate plots from anyhtestobject- Displays point estimate with confidence interval
- Handles null values (single or equivalence bounds) as reference lines
- Automatically handles two-sample t-test estimates by computing mean difference
-
Added BCa (bias-corrected and accelerated) bootstrap confidence intervals as a new
boot_ci = "bca"option for:-
boot_t_test,boot_t_TOST,boot_log_TOST,boot_smd_calc,boot_ses_calc, andboot_cor_test - BCa intervals provide second-order accuracy by correcting for bias and skewness in the bootstrap distribution
- Acceleration factor computed via leave-one-out jackknife (pooled jackknife for two-sample designs)
- Informative errors for degenerate cases with suggestion to use
boot_ci = "perc"as fallback
-
Improvements
-
Correlation SE improvements for
z_cor_test()andcorsum_test():- Spearman’s rho now uses the Bonett-Wright ρ-dependent SE formula (
sqrt((1 + r^2/2) / (n - 3))) instead of the fixed 1.06 constant, providing better calibration across the full range of rho. -
z_cor_test()gains ase_methodargument ("analytic"or"jackknife") for computing the standard error via leave-one-out resampling on the Fisher z scale. The jackknife SE is used consistently for both the test statistic and the confidence interval. - Both functions now return
stderras a named vector withz.se(Fisher z scale, used for inference) andcor.se(delta method SE on the correlation scale, for descriptive purposes). - The
methodstring in the returnedhtestobject now indicates the SE type used (e.g.,"Pearson's product-moment correlation with approximate SE"or"Spearman's rank correlation rho with jackknifed SE").
- Spearman’s rho now uses the Bonett-Wright ρ-dependent SE formula (
-
simple_htest(),boot_t_test(),perm_t_test(), andhodges_lehmann()now produce more informative estimate labels that indicate the direction of calculation (e.g.,"mean difference (treatment - control)"when using the formula interface). - For two-sample mean-based tests (
simple_htestwith t-test,boot_t_test,perm_t_test), the mean difference is now appended as a third element of$estimate, while preserving existing group means at positions 1-2 (backwards-compatible). - Paired test estimates are labeled to clarify the differencing operation, e.g.,
"mean of the differences (z = x - y)". - Wilcoxon/Mann-Whitney estimates in
simple_htest()are labeled as"Hodges-Lehmann estimate"with direction indicated. -
hodges_lehmann()estimate labels updated for clarity:"pseudomedian of x"for one-sample,"Hodges-Lehmann estimate (x - y)"for two-sample, and"Hodges-Lehmann estimate (z = x - y)"for paired tests. - Trimmed mean labels in
boot_t_test()andperm_t_test()now include the trimming proportion, e.g.,"trimmed mean difference (x - y, tr = 0.1)". - A
$sample_sizeelement (named numeric vector) is now included in the returnedhtestobject for all four functions. For two-sample formula calls, names reflect the actual factor levels. -
Permutation test terminology: Clarified distinction between “Exact Permutation” (all permutations enumerated) and “Randomization” (permutations sampled with replacement) tests across
perm_t_test,hodges_lehmann, andbrunner_munzel -
p_method auto-selection: Added intelligent default for
p_methodargument in permutation-based functions:-
NULL(default): Automatically selects “exact” for exact permutation tests and “plusone” for randomization tests - “exact”: Uses b/R, appropriate when all permutations are enumerated
- “plusone”: Uses (b+1)/(R+1) following Phipson & Smyth (2010), provides exact Type I error control for randomization tests
-
- Update
brunner_munzelfunction to allow TOST directly - Update functions to disallow
paired = TRUEwhen formula method utilized. - Improved
plot.TOSTtfortype = "simple":- Raw estimate plot now appears on top (was on bottom)
- Decision text and equivalence bounds now displayed at top of plot
- Added
layoutparameter: “stacked” (default) or “combined” for a single faceted plot
- Improved
plot.TOSTtfortype = "tnull":- Now shows only one-sided rejection regions appropriate to the test type
- Equivalence tests: lower bound shows right tail, upper bound shows left tail
- Minimal effect tests: lower bound shows left tail, upper bound shows right tail
TOSTER v0.8.7
- Update documentation to make it clear what the “eqb” argument does within the
wilcox_TOSTfunction.
TOSTER v0.8.6
CRAN release: 2025-08-22
- Add warning message about error control with MET
- Fix unit tests for boot_ses_calc to catch errors when estimates contain infinite values or when ses is not “rb”
TOSTER v0.8.5
- Big update to package documentation to make things more detailed.
- Added extra message when permutation tests are used for the Brunner-Munzel test.
- Added more alternative hypotheses to
boot_compare_smd. - Expanded functionality of
power_eq_ffunction.
TOSTER v0.8.4
CRAN release: 2025-02-06
- Added simple plot for
TOSTtmethods - Small fix to output for printed method for
TOSTt - Added fix to
power_z_corto provide “zero” power for scenarios where the effect is undetectable
TOSTER v0.8.3
CRAN release: 2024-05-08
- Change in the standard error formulation to Glass delta for independent samples
- Hat tip to Paul Dudgeon for catching an error in the code that led to this development
- Other small changes to standard error calcs (see vignettes for details)
- Small modification to
plot_smdto catch errors when attempting to plot - Brunner-Munzel updates
- Added more warning messages
- Changed default for
simple_htestto 0.5 rather than 0
TOSTER v0.8.2
CRAN release: 2024-04-16
- Fixed error with
describemethod for minimal effects test forTOSTtobjects.
TOSTER v0.8.1
CRAN release: 2024-03-21
- Small correction to the displayed equation for Cohen’s ds standard error. Thank you to Matthew B Jané for finding this error.
- Added bootstrap options such as
boot_smd_calcandboot_ses_calc.- Many functions also now allow for different CI methods for bootstrapped results.
TOSTER v0.8.0
CRAN release: 2023-09-14
- Added Brunner-Munzel test
- Updated documentation to include lifecycle labels
- Created new function for two proportions tests (
twoprop_test)- And power
power_twoprop
- And power
- Created new function for power for correlations (
power_z_cor) - Deprecated old functions
TOSTER v0.7.1
CRAN release: 2023-04-05
- Fixing the ggplot2 error related to
after_statupdate from that package. - Update documentation.
TOSTER v0.7.0
- Add correlation functions
z_cor_test,boot_cor_test,corsum_test,boot_compare_cor, andsimple_htest - Add
describemethod to provide verbose output for analyses- Alternative
describe_htestfunction for htest objects
- Alternative
TOSTER v0.6.0
CRAN release: 2022-12-13
- Changed Glass’s delta SE for paired samples (minor).
- Added
smd_calcandses_calcfor just calculating the standardized effect sizes (no tests). - Default CIs for for SMDs are now NCT rather than the Goulet method.
-
compare_smdcan be supplied with user provided standard errors. - Add
log_TOSTandboot_log_TOSTfunction for comparing ratios of means. - Reduce the amount of text in the
printmethods
TOSTER v0.5.0
- Added “compare” functions.
-
compare_smd: Compare 2 SMDs from summary statistics -
boot_compare_smd: Compare 2 SMDs from raw data -
compare_cor: Compare 2 independent correlations
-
- Added additional SMD options
- Confidence intervals can now be estimated using other methods
- smd_ci can be used to set the confidence interval method
- Glass’s delta can now be calculated using the
glassargument
- Added additional standardized effect sizes for
wilcox_TOST-
sesargument can be set to “r”, “odds”, or “cstat” - Respectively, these will provide the rank-biserial correlation, odds, or concordance probability
-
TOSTER v0.4.0
CRAN release: 2022-02-04
“Avocado TOST” (Release date: 2022-02-05)
Changes:
-
New t_TOST function
- Generalized function for TOST for any type of t-test
- S3 generic methods to print and plot results
-
New power_t_TOST function
- Generalized function for t_TOST power analysis
- Outputs the an object of
power.htestclass
- Updated all jamovi functions to allow minimal effect tests
- Direction of one-sided tests now allows
- Added equ_anova and equ_ftest
- Now allows equivalence (also called non-inferiority)
- jamovi functions using t-test have more plotting options
- Error in powerTOSTtwo fixed when determining N
- All old t-test based TOST functions now have message telling users they are defunct
- All TOST procedures have text results changed to provide more appropriate feedback.
TOSTER v0.3.4
CRAN release: 2018-08-03
(Release date: 2018-08-05)
Changes:
- Added a verbose = FALSE option to all functions.
- Added Fisher’s z transformed CI to output of TOSTr.
- Cleaned up the text and numeric output of the functions.
- Renamed some variable names in the TOSTtwo.prop function for similarity with TOSTmeta.
- Added warnings and error messages for possible incorrect input when using the functions.
TOSTER v0.3.3
CRAN release: 2018-05-08
(Release date: 2018-05-08)
Changes:
- Error in order in which p-value 1 and p-value 2 were reported for TOSTr due to incorrect use of abs(r) in function. (thanks to Nils Kroemer and Dan Quintana)
- Fixed error in powerTOSTr function - instead of based on conversion to d, new function calculates directly from r and is more accurate.
- Added testthat folder and initial unit tests.
TOSTER v0.3.2
CRAN release: 2018-04-14
(Release date: 2018-04-14)
Changes:
- Error in sensitivity analyses of powerTOSTpaired.raw, powerTOSTone.raw, powerTOSTtwo.raw where output was in Cohen’s d - now changed to output in raw scores, added sd to examples. (thanks to Lisa DeBruine)
- Raw power functions still output ceiling N in message, but exact N in output value
TOSTER v0.3.1
CRAN release: 2018-04-06
(Release date: 2018-04-06)
Changes:
- Error in TOSTpaired.raw where t-test for TOST multiplied by sdiff (copied from TOSTpaired function) removed. CI were correct, but p-values did not match. Now tests are correct. (thanks to ontogenerator)
- Changed text in TOSTr function (text copied from t-test script now changed to correlation)