ssutil 1.2.0
CRAN release: 2026-09-17
- Fix bug on
power_best_binomial() - Improve performance of
sim_power_best_binomial() - Add test to confirm
power_best_binomial()produces a valid result using simulations. - constrain parameter in
wcs_power_best_binomial()to avoid search probabilities lower than the difference. - Modify
sim_power_nbinom()to explicitly indicate the direction of the alternative hypothesis as it could be wrongly inferred from therralone. - Modify
multz()andmultq()to follow R convention in distributions. A new parameterlower.tailis added - Fix a bug an
ss_best_normal()returns now an integer value -
ss_ni_ve()now computes the total number of events using Freedman’s (1982) log-rank sample size formula instead ofgsDesign::nBinomial1Sample(), which better reproduces Table 1 of Fleming et al. (2021) and removes thegsDesignpackage dependency - Added
ve_exp/ve_acparameters toss_ni_ve(), allowing the experimental vaccine’s assumed efficacy to differ from the active comparator’s, which reproduces Table 2 of Fleming et al. (2021) - Added a
true_diffparameter tosim_power_ni_normal()so simulations are no longer restricted to a true difference of 0 between groups, allowing sensitivity evaluation when the experimental group is truly slightly worse or better than control - Fixed
prophr()to accept vector inputs forp0/hrwithout an “condition has length > 1” error - Corrected documentation:
sim_power_best_bin_rank()selects the group with the highest total rank as best (roxygen said “lowest”);power_best_normal()returns a probability, not an integer sample size;sim_power_ni_normal()’s andsim_power_equivalence_normal()’st_levelexamples/docs clarified - Removed dead/superseded code and a missing-comma typo in
sim_power_nbinom()’s example
ssutil 1.1.0
CRAN release: 2026-09-06
- Added the
power_events_rate()function to compute the exact binomial probability of observing at least a given number of events, across combinations of sample sizes and risks. - Updated the “Power for rare events” vignette (formerly “Detectable Event Rate for Safety Signal Detection”) to cover
power_events_rate()alongsidepower_single_rate(). - Corrected several grammar, spelling, and terminology errors across the package vignettes.
ssutil 0.15.0
- Remove lf_config functions as they are not useful. Replace by the worst case scenario function.
- Modify
sim_best_binomial()function to select the best using ranks rather than the custom approach of which == max(). - Make uniform the parameters names
- Provide standardized output for the simulations
ssutil 0.14.0
- Re-factoring of the entire package.
- Functions that calculate power based on simulation now start with the prefix
sim_. -
ni_fleminghas been renamed toni_ve. - The
multzfunction was modified to correctly handle the case when there is only one group. - Improve documentation
ssutil 0.13.0
- Added the
probhrfunction to estimate the probability of an event in the experimental group based on the control group probability and the hazard ratio, assuming proportional hazards.
ssutil 0.12.0
- Added the option to preserve the effect.
- Modified the formula used in the Fleming method.
ssutil 0.10.0
-
power_best_binomialandpower_best_normalwere updated to match their rank-based equivalents. - Now,
difrepresents the difference between the most promising group and the rest. - For binomial tests,
probis now the probability in the most promising group (previously it referred to the other groups), anddifdefines how much lower the other groups are.
ssutil 0.9.0
- Added support for weights in
power_best_norm_ranksandpower_best_bin_rank. - Note: the API is not backward compatible for these two functions.
ssutil 0.8.0
- Added
power_best_norm_rankto empirically estimate power for normal distributions based on ranks.
ssutil 0.7.0
- Added a function to calculate non-inferiority in vaccine trials following Fleming et al.
ssutil 0.6.0
- Fixed an error in
power_test_binomialwhere, in the absence of ties, thesamplefunction randomly selected a number instead of sampling from a range. - Fixed the same issue in
power_best_normal. -
power_best_binomialnow returns a data frame with power and 95% confidence interval. -
power_best_normalnow returns a data frame with power and 95% confidence interval. -
power_ni_normalnow includes the number of simulations in the output data frame. - Added
power_best_bin_rank, which selects the best group based on ranks, instead of assuming the highest value as inpower_best_binomial.
