R Under development (unstable) (2024-03-03 r86036 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. > library(testthat) > library(predint) Loading required package: ggplot2 Loading required package: lme4 Loading required package: Matrix Loading required package: MASS Attaching package: 'predint' The following object is masked from 'package:stats': rnbinom > > test_check("predint") boundary (singular) fit: see help('isSingular') boundary (singular) fit: see help('isSingular') boundary (singular) fit: see help('isSingular') boundary (singular) fit: see help('isSingular') Simultanious 95 % prediction interval for 21 future observations y_ijk a b lower upper y_star_hat q pred_se cover 1 104.23335 1 1 79.22144 125.5727 102.3971 3.912344 5.923724 TRUE 2 107.27565 1 1 79.22144 125.5727 102.3971 3.912344 5.923724 TRUE 3 89.19409 2 1 79.22144 125.5727 102.3971 3.912344 5.923724 TRUE 4 89.76254 2 1 79.22144 125.5727 102.3971 3.912344 5.923724 TRUE 5 101.50413 3 1 79.22144 125.5727 102.3971 3.912344 5.923724 TRUE 6 99.68228 3 1 79.22144 125.5727 102.3971 3.912344 5.923724 TRUE 7 96.33957 3 1 79.22144 125.5727 102.3971 3.912344 5.923724 TRUE 8 103.80297 1 2 79.22144 125.5727 102.3971 3.912344 5.923724 TRUE 9 104.13151 1 2 79.22144 125.5727 102.3971 3.912344 5.923724 TRUE 10 94.15658 2 2 79.22144 125.5727 102.3971 3.912344 5.923724 TRUE 11 94.30052 2 2 79.22144 125.5727 102.3971 3.912344 5.923724 TRUE 12 101.01136 2 2 79.22144 125.5727 102.3971 3.912344 5.923724 TRUE 13 102.18168 3 2 79.22144 125.5727 102.3971 3.912344 5.923724 TRUE 14 101.21396 3 2 79.22144 125.5727 102.3971 3.912344 5.923724 TRUE 15 102.88942 3 2 79.22144 125.5727 102.3971 3.912344 5.923724 TRUE 16 104.43760 1 3 79.22144 125.5727 102.3971 3.912344 5.923724 TRUE 17 103.64004 1 3 79.22144 125.5727 102.3971 3.912344 5.923724 TRUE 18 106.81732 1 3 79.22144 125.5727 102.3971 3.912344 5.923724 TRUE 19 95.77869 3 3 79.22144 125.5727 102.3971 3.912344 5.923724 TRUE 20 99.55424 3 3 79.22144 125.5727 102.3971 3.912344 5.923724 TRUE 21 97.57871 3 3 79.22144 125.5727 102.3971 3.912344 5.923724 TRUE All future observations are covered Bootstrap calibration was done following Menssen and Schaarschmidt 2022Simultanious 95 % prediction interval for 21 future observations y_ijk a b lower upper y_star_hat q pred_se cover 21 104.23335 1 1 79.22144 125.5727 102.3971 3.912344 5.923724 TRUE 20 107.27565 1 1 79.22144 125.5727 102.3971 3.912344 5.923724 TRUE 19 89.19409 2 1 79.22144 125.5727 102.3971 3.912344 5.923724 TRUE 18 89.76254 2 1 79.22144 125.5727 102.3971 3.912344 5.923724 TRUE 17 101.50413 3 1 79.22144 125.5727 102.3971 3.912344 5.923724 TRUE 16 99.68228 3 1 79.22144 125.5727 102.3971 3.912344 5.923724 TRUE 15 96.33957 3 1 79.22144 125.5727 102.3971 3.912344 5.923724 TRUE 14 103.80297 1 2 79.22144 125.5727 102.3971 3.912344 5.923724 TRUE 13 104.13151 1 2 79.22144 125.5727 102.3971 3.912344 5.923724 TRUE 12 94.15658 2 2 79.22144 125.5727 102.3971 3.912344 5.923724 TRUE 11 94.30052 2 2 79.22144 125.5727 102.3971 3.912344 5.923724 TRUE 10 101.01136 2 2 79.22144 125.5727 102.3971 3.912344 5.923724 TRUE 9 102.18168 3 2 79.22144 125.5727 102.3971 3.912344 5.923724 TRUE 8 101.21396 3 2 79.22144 125.5727 102.3971 3.912344 5.923724 TRUE 7 102.88942 3 2 79.22144 125.5727 102.3971 3.912344 5.923724 TRUE 6 104.43760 1 3 79.22144 125.5727 102.3971 3.912344 5.923724 TRUE 5 103.64004 1 3 79.22144 125.5727 102.3971 3.912344 5.923724 TRUE 4 106.81732 1 3 79.22144 125.5727 102.3971 3.912344 5.923724 TRUE 3 95.77869 3 3 79.22144 125.5727 102.3971 3.912344 5.923724 TRUE 2 99.55424 3 3 79.22144 125.5727 102.3971 3.912344 5.923724 TRUE 1 97.57871 3 3 79.22144 125.5727 102.3971 3.912344 5.923724 TRUE All future observations are covered Bootstrap calibration was done following Menssen and Schaarschmidt 2022One-sided simultanious 95 % lower prediction limit for 21 future observations y_ijk a b lower y_star_hat q pred_se cover 1 104.23335 1 1 83.84472 102.3971 3.131875 5.923724 TRUE 2 107.27565 1 1 83.84472 102.3971 3.131875 5.923724 TRUE 3 89.19409 2 1 83.84472 102.3971 3.131875 5.923724 TRUE 4 89.76254 2 1 83.84472 102.3971 3.131875 5.923724 TRUE 5 101.50413 3 1 83.84472 102.3971 3.131875 5.923724 TRUE 6 99.68228 3 1 83.84472 102.3971 3.131875 5.923724 TRUE 7 96.33957 3 1 83.84472 102.3971 3.131875 5.923724 TRUE 8 103.80297 1 2 83.84472 102.3971 3.131875 5.923724 TRUE 9 104.13151 1 2 83.84472 102.3971 3.131875 5.923724 TRUE 10 94.15658 2 2 83.84472 102.3971 3.131875 5.923724 TRUE 11 94.30052 2 2 83.84472 102.3971 3.131875 5.923724 TRUE 12 101.01136 2 2 83.84472 102.3971 3.131875 5.923724 TRUE 13 102.18168 3 2 83.84472 102.3971 3.131875 5.923724 TRUE 14 101.21396 3 2 83.84472 102.3971 3.131875 5.923724 TRUE 15 102.88942 3 2 83.84472 102.3971 3.131875 5.923724 TRUE 16 104.43760 1 3 83.84472 102.3971 3.131875 5.923724 TRUE 17 103.64004 1 3 83.84472 102.3971 3.131875 5.923724 TRUE 18 106.81732 1 3 83.84472 102.3971 3.131875 5.923724 TRUE 19 95.77869 3 3 83.84472 102.3971 3.131875 5.923724 TRUE 20 99.55424 3 3 83.84472 102.3971 3.131875 5.923724 TRUE 21 97.57871 3 3 83.84472 102.3971 3.131875 5.923724 TRUE All future observations are covered Bootstrap calibration was done following Menssen and Schaarschmidt 2022One-sided simultanious 95 % upper prediction limit for 21 future observations y_ijk a b upper y_star_hat q pred_se cover 1 104.23335 1 1 121.8741 102.3971 3.287969 5.923724 TRUE 2 107.27565 1 1 121.8741 102.3971 3.287969 5.923724 TRUE 3 89.19409 2 1 121.8741 102.3971 3.287969 5.923724 TRUE 4 89.76254 2 1 121.8741 102.3971 3.287969 5.923724 TRUE 5 101.50413 3 1 121.8741 102.3971 3.287969 5.923724 TRUE 6 99.68228 3 1 121.8741 102.3971 3.287969 5.923724 TRUE 7 96.33957 3 1 121.8741 102.3971 3.287969 5.923724 TRUE 8 103.80297 1 2 121.8741 102.3971 3.287969 5.923724 TRUE 9 104.13151 1 2 121.8741 102.3971 3.287969 5.923724 TRUE 10 94.15658 2 2 121.8741 102.3971 3.287969 5.923724 TRUE 11 94.30052 2 2 121.8741 102.3971 3.287969 5.923724 TRUE 12 101.01136 2 2 121.8741 102.3971 3.287969 5.923724 TRUE 13 102.18168 3 2 121.8741 102.3971 3.287969 5.923724 TRUE 14 101.21396 3 2 121.8741 102.3971 3.287969 5.923724 TRUE 15 102.88942 3 2 121.8741 102.3971 3.287969 5.923724 TRUE 16 104.43760 1 3 121.8741 102.3971 3.287969 5.923724 TRUE 17 103.64004 1 3 121.8741 102.3971 3.287969 5.923724 TRUE 18 106.81732 1 3 121.8741 102.3971 3.287969 5.923724 TRUE 19 95.77869 3 3 121.8741 102.3971 3.287969 5.923724 TRUE 20 99.55424 3 3 121.8741 102.3971 3.287969 5.923724 TRUE 21 97.57871 3 3 121.8741 102.3971 3.287969 5.923724 TRUE All future observations are covered Bootstrap calibration was done following Menssen and Schaarschmidt 2022Pointwise 95 % prediction interval for one future observation lower upper y_star_hat q pred_se 1 88.93033 115.8638 102.3971 2.273359 5.923724 Bootstrap calibration was done following Menssen and Schaarschmidt 2022One-sided pointwise 95 % lower prediction limit for one future observation lower y_star_hat q pred_se 1 92.21719 102.3971 1.718495 5.923724 Bootstrap calibration was done following Menssen and Schaarschmidt 2022One-sided pointwise 95 % upper prediction limit for one future observation upper y_star_hat q pred_se 1 115.5749 102.3971 2.22458 5.923724 Bootstrap calibration was done following Menssen and Schaarschmidt 2022Simultanious 95 % prediction interval for 6 future observations lower upper y_star_hat q pred_se 1 82.92006 121.8741 102.3971 3.287969 5.923724 2 82.92006 121.8741 102.3971 3.287969 5.923724 3 82.92006 121.8741 102.3971 3.287969 5.923724 4 82.92006 121.8741 102.3971 3.287969 5.923724 5 82.92006 121.8741 102.3971 3.287969 5.923724 6 82.92006 121.8741 102.3971 3.287969 5.923724 Bootstrap calibration was done following Menssen and Schaarschmidt 2022Simultanious 95 % prediction intervals for 3 future observations succ fail newsize lower upper y_star_hat ql qu pred_se 1 11 29 40 -2.626344 20.36221 3.36 1.473684 4.185508 4.062163 2 1 49 50 -3.149746 25.07451 4.20 1.473684 4.185508 4.987329 3 3 57 60 -3.671520 29.78217 5.04 1.473684 4.185508 5.911390 cover 1 TRUE 2 TRUE 3 TRUE All future observations are covered Bootstrap calibration was done for each prediction limit seperately using a modiefied version of Menssen and Schaarschmidt 2022Pointwise 95 % prediction interval for one future observation lower upper newsize y_star_hat ql qu pred_se 1 -1.097296 9.891454 30 2.52 1.153875 2.351406 3.134913 Bootstrap calibration was done for each prediction limit seperately using a modiefied version of Menssen and Schaarschmidt 2022Simultanious 95 % prediction intervals for 3 future observations y offset lower upper y_star_hat ql qu pred_se cover 1 44 1 8.642583 107.0368 48.9 2.479452 3.580645 16.23642 TRUE 2 74 1 8.642583 107.0368 48.9 2.479452 3.580645 16.23642 TRUE 3 36 1 8.642583 107.0368 48.9 2.479452 3.580645 16.23642 TRUE All future observations are covered Bootstrap calibration was done for each prediction limit seperately using a modiefied version of Menssen and Schaarschmidt 2022Pointwise 95 % prediction interval for one future observation lower upper newoffset y_star_hat ql qu pred_se 1 83.16364 219.1841 3 146.7 2.078242 2.370918 30.57216 Bootstrap calibration was done for each prediction limit seperately using a modiefied version of Menssen and Schaarschmidt 2022[ FAIL 0 | WARN 0 | SKIP 0 | PASS 305 ] > > proc.time() user system elapsed 135.92 1.92 137.96