Crandore Hub

safestats

Safe Anytime-Valid Inference

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.

Versions across snapshots

VersionRepositoryFileSize
0.8.7 rolling linux/jammy R-4.5 safestats_0.8.7.tar.gz 1.3 MiB
0.8.7 rolling linux/noble R-4.5 safestats_0.8.7.tar.gz 1.3 MiB
0.8.7 rolling source/ R- safestats_0.8.7.tar.gz 3.0 MiB
0.8.7 latest linux/jammy R-4.5 safestats_0.8.7.tar.gz 1.3 MiB
0.8.7 latest linux/noble R-4.5 safestats_0.8.7.tar.gz 1.3 MiB
0.8.7 latest source/ R- safestats_0.8.7.tar.gz 3.0 MiB
0.8.7 2026-04-26 source/ R- safestats_0.8.7.tar.gz 3.0 MiB
0.8.7 2026-04-23 source/ R- safestats_0.8.7.tar.gz 3.0 MiB
0.8.7 2026-04-09 windows/windows R-4.5 safestats_0.8.7.zip 1.3 MiB
0.8.7 2025-04-20 source/ R- safestats_0.8.7.tar.gz 3.0 MiB

Dependencies (latest)

Imports

Suggests