Skip to content

sprtt

Sequential Probability Ratio Tests Toolbox

v0.2.0 · Jul 6, 2023 · AGPL (>= 3)

Description

It is a toolbox for Sequential Probability Ratio Tests (SPRT), Wald (1945) <doi:10.2134/agronj1947.00021962003900070011x>. SPRTs are applied to the data during the sampling process, ideally after each observation. At any stage, the test will return a decision to either continue sampling or terminate and accept one of the specified hypotheses. The seq_ttest() function performs one-sample, two-sample, and paired t-tests for testing one- and two-sided hypotheses (Schnuerch & Erdfelder (2019) <doi:10.1037/met0000234>). The seq_anova() function allows to perform a sequential one-way fixed effects ANOVA (Steinhilber et al. (2023) <doi:10.31234/osf.io/m64ne>). Learn more about the package by using vignettes "browseVignettes(package = "sprtt")" or go to the website <https://meikesteinhilber.github.io/sprtt/>.

Downloads

205

Last 30 days

16179th

205

Last 90 days

205

Last year

CRAN Check Status

2 ERROR
12 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
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 ERROR
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 ERROR
r-release-windows-x86_64 OK
Check details (14 non-OK)
OK r-devel-linux-x86_64-debian-clang

*


            
OK r-devel-linux-x86_64-debian-gcc

*


            
OK 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

*


            
ERROR r-oldrel-windows-x86_64

package dependencies

Package required but not available: 'MBESS'

See section 'The DESCRIPTION file' in the 'Writing R Extensions'
manual.
OK r-patched-linux-x86_64

*


            
OK r-release-linux-x86_64

*


            
OK r-release-macos-arm64

*


            
ERROR r-release-macos-x86_64

tests

  Running ‘testthat.R’ [18s/24s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(sprtt)
  > test_check("sprtt")
  
  group1:
  mean1 = 2.46777344198438, mean2 = 0.608428594215837,
  sigma1 = 0.482007335673351, sigma2 = 0.197705075542727
  
  group2:
  mean1 = -2.46347924113178, mean2 = -0.538882255686642,
  sigma1 = 0.357577686490047, sigma2 = 0.141779476413764
  
  group3:
  mean1 = 2.38161351990046, mean2 = 0.581606228997085,
  sigma1 = 0.552465125339928, sigma2 = 0.273439502688409
  
  group4:
  mean1 = -2.50761894316742, mean2 = -0.529441345111927,
  sigma1 = 0.207670515238717, sigma2 = 0.0167228100567904
  [ FAIL 2 | WARN 1 | SKIP 15 | PASS 274 ]
  
  ══ Skipped tests (15) ══════════════════════════════════════════════════════════
  • On CRAN (15): 'test-calc_effect_sizes.R:75:3',
    'test-calc_group_means.R:11:3', 'test-calc_likelihoods.R:101:3',
    'test-calc_plot_sprt.R:13:3',
    'test-calc_seq_anova_non_centrality_parameter.R:10:3',
    'test-calc_ss_effect.R:15:3', 'test-calc_ss_residual.R:15:3',
    'test-draw_sample.R:9:3', 'test-draw_sample.R:101:3',
    'test-draw_sample.R:194:3', 'test-seq_anova.R:9:3', 'test-seq_anova.R:52:3',
    'test-show.R:9:3', 'test-show.R:63:3', 'test-show.R:90:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-seq_anova_error_rates.R:5:3'): Check error rates ───────────────
  <packageNotFoundError/error/condition>
  Error in `library(testthis)`: there is no package called 'testthis'
  Backtrace:
      ▆
   1. └─base::library(testthis) at test-seq_anova_error_rates.R:5:3
  ── Error ('test-seq_ttest-error_rates.R:5:3'): Check error rates ───────────────
  <packageNotFoundError/error/condition>
  Error in `library(testthis)`: there is no package called 'testthis'
  Backtrace:
      ▆
   1. └─base::library(testthis) at test-seq_ttest-error_rates.R:5:3
  
  [ FAIL 2 | WARN 1 | SKIP 15 | PASS 274 ]
  Deleting unused snapshots:
  • calc_plot_sprt/balanced.svg
  • calc_plot_sprt/change-lr-position.svg
  • calc_plot_sprt/color-change.svg
  • calc_plot_sprt/custom-steps-2.svg
  • calc_plot_sprt/custom-steps.svg
  • calc_plot_sprt/exmple-case-all-arguments.svg
  • calc_plot_sprt/larger-sample.svg
  Error: Test failures
  Execution halted
OK r-release-windows-x86_64

*


            

Check History

ERROR 12 OK · 0 NOTE · 0 WARNING · 2 ERROR · 0 FAILURE Mar 9, 2026
ERROR r-release-macos-x86_64

tests

  Running ‘testthat.R’ [18s/24s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(sprtt)
  > test_check("sprtt")
  
  group1:
  mean1 = 2.46777344198438, mean2 = 0.608428594215837,
  sigma1 = 0.482007335673351, sigma2 = 0.197705075542727
  
  group2:
  mean1 = -2.46347924113178, mean2 = -0.538882255686642,
  sigma1 = 0.357577686490047, sigma2 = 0.141779476413764
  
  group3:
  mean1 = 2.38161351990046, mean2 = 0.581606228997085,
  sigma1 = 0.5524
ERROR r-oldrel-windows-x86_64

package dependencies

Package required but not available: 'MBESS'

See section 'The DESCRIPTION file' in the 'Writing R Extensions'
manual.

Dependency Network

Dependencies Reverse dependencies dplyr MBESS purrr glue ggplot2 lifecycle sprtt

Version History

new 0.2.0 Mar 9, 2026