Skip to content

safestats

Safe Anytime-Valid Inference

v0.8.7 · Nov 24, 2022 · LGPL (>= 3)

Description

Functions to design and apply tests that are anytime valid. The functions can be used to design hypothesis tests in the prospective/randomised control trial setting or in the observational/retrospective setting. The resulting tests remain valid under both optional stopping and optional continuation. The current version includes safe t-tests and safe tests of two proportions. For details on the theory of safe tests, see Grunwald, de Heide and Koolen (2019) "Safe Testing" <arXiv:1906.07801>, for details on safe logrank tests see ter Schure, Perez-Ortiz, Ly and Grunwald (2020) "The Safe Logrank Test: Error Control under Continuous Monitoring with Unlimited Horizon" <arXiv:2011.06931v3> and Turner, Ly and Grunwald (2021) "Safe Tests and Always-Valid Confidence Intervals for contingency tables and beyond" <arXiv:2106.02693> for details on safe contingency table tests.

Downloads

286

Last 30 days

14493rd

740

Last 90 days

2.6K

Last year

Trend: +18.2% (30d vs prior 30d)

CRAN Check Status

2 NOTE
12 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang NOTE
r-devel-linux-x86_64-debian-gcc NOTE
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (2 non-OK)
NOTE r-devel-linux-x86_64-debian-clang

CRAN incoming feasibility

Maintainer: ‘Alexander Ly <a.ly@jasp-stats.org>’

The Description field contains
  (2019) "Safe Testing" <arXiv:1906.07801>, for details on safe logrank
  Horizon" <arXiv:2011.06931v3> and Turner, Ly and Grunwald (2021) "Safe
  beyond" <arXiv:2106.02693> for details on safe contingency table tests.
Please refer to arXiv e-prints via their arXiv DOI <doi:10.48550/arXiv.YYMM.NNNNN>.
NOTE r-devel-linux-x86_64-debian-gcc

CRAN incoming feasibility

Maintainer: ‘Alexander Ly <a.ly@jasp-stats.org>’

The Description field contains
  (2019) "Safe Testing" <arXiv:1906.07801>, for details on safe logrank
  Horizon" <arXiv:2011.06931v3> and Turner, Ly and Grunwald (2021) "Safe
  beyond" <arXiv:2106.02693> for details on safe contingency table tests.
Please refer to arXiv e-prints via their arXiv DOI <doi:10.48550/arXiv.YYMM.NNNNN>.

Check History

NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-devel-linux-x86_64-debian-clang

CRAN incoming feasibility

Maintainer: ‘Alexander Ly <a.ly@jasp-stats.org>’

The Description field contains
  (2019) "Safe Testing" <arXiv:1906.07801>, for details on safe logrank
  Horizon" <arXiv:2011.06931v3> and Turner, Ly and Grunwald (2021) "Safe
  beyond" <arXiv:2106.02693> for details on safe contingency table tests.
Please refer to arXiv e-prints via their arXiv DOI <doi:10.48550/arXiv.YYMM.NNNNN>.
NOTE r-devel-linux-x86_64-debian-gcc

CRAN incoming feasibility

Maintainer: ‘Alexander Ly <a.ly@jasp-stats.org>’

The Description field contains
  (2019) "Safe Testing" <arXiv:1906.07801>, for details on safe logrank
  Horizon" <arXiv:2011.06931v3> and Turner, Ly and Grunwald (2021) "Safe
  beyond" <arXiv:2106.02693> for details on safe contingency table tests.
Please refer to arXiv e-prints via their arXiv DOI <doi:10.48550/arXiv.YYMM.NNNNN>.

Dependency Network

Dependencies Reverse dependencies hypergeo survival BiasedUrn boot dplyr purrr rlang safestats

Version History

new 0.8.7 Mar 10, 2026
updated 0.8.7 ← 0.8.6 diff Nov 23, 2022
new 0.8.6 Jan 31, 2022