R Under development (unstable) (2024-12-02 r87417 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview > # * https://testthat.r-lib.org/articles/special-files.html > > library(testthat) > library(regtomean) > > test_check("regtomean") Results: t opt: 200.0000 in absolute values the best possible t-statistic to test for a treatment effect p min: 0.0000 the minimal p-value testing for a treatment effect μ max: 10.00 that μ where the p-value is minimal and treatment effect is 'maximally significant' μ lower: 0.10 (lowest value of μ with a p-value ≤ 0.05 ) μ upper: 10.00 (highest value of μ with a p-value ≤ 0.05 ) For μ ∈ [ 0.1 , 10 ], treatment effect is significant under α, considering regression to the mean. Results: t opt: 1.9378 in absolute values the best possible t-statistic to test for a treatment effect p min: 0.0504 the minimal p-value testing for a treatment effect μ max: 59.00 that μ where the p-value is minimal and treatment effect is 'maximally significant' μ lower: Inf (lowest value of μ with a p-value ≤ 0.05 ) μ upper: -Inf (highest value of μ with a p-value ≤ 0.05 ) In the provided range of μ there is no μ for which the test result is significant according to α. [ FAIL 0 | WARN 0 | SKIP 0 | PASS 9 ] > > proc.time() user system elapsed 1.46 0.42 1.87