Skip to content

gsDesign2 1.1.1

Compare
Choose a tag to compare
@nanxstats nanxstats released this 09 Feb 16:02
· 649 commits to main since this release
38bd1b6

New features

  • The as_rtf() method is now available for fixed_design and gs_design objects for generating RTF table outputs (@fukuhiro2023, #278).

Bug fixes

  • gs_power_wlr() and to_integer() now check and convert integer sample size more rigorously (#322).
  • gs_design_*() now handle exceptions explicitly when all hazard ratio is set to 1 throughout the study (#301).
  • fixed_design_rd() will not generate warnings due to the previous default value change of h1_spending (#296).

Improvements

  • gs_power_ahr() now runs twice as fast by using data.table and other performance optimizations (#295), enhanced by similar improvements in gs_info_ahr() and pw_info() (#300).
  • Enrollment and failure rate input constructors and validators are refactored to check only the format instead of the class. This change reduces the number of warning messages and catches real exceptions as errors properly (#316).
  • Nested functions are refactored into reusable internal functions, to improve code rigor, avoid potential scoping pitfalls, and facilitate debugging (#235).
  • For fixed designs, the variable names of the table outputs from to_integer() and summary() are updated (#292).

Documentation

  • Add a new vignette statistical information under null and alternative hypothesis (#289).
  • Improve define_enroll_rate() and define_fail_rate() documentation by adding detailed descriptions and improving code examples (#302).
  • The function reference page now has dedicated sections for piecewise exponential distributions and computing trial events (#258).
  • Use the four trailing dashes convention to standardize code comment section format (#308).

Namespace and testing

  • Tidy up namespace by removing rlang from and adding stats to Imports (#307, #325).
  • Qualify namespaces in tests to avoid library() calls (#332).
  • Fortify the GitHub Actions workflows by limiting the token usage only when necessary and enabling manual trigger of workflow runs (#326).
  • Update GitHub Actions workflows to the latest versions from upstream (#330).