Print frequentist test for no adverse shift.
# S3 method for outlier.test
print(x, ...)
A outlier.test
object from a D-SOS test.
Placeholder to be compatible with S3 method plot
.
Print to screen: display p-value and other information.
Other s3-method:
plot.outlier.bayes()
,
plot.outlier.test()
,
print.outlier.bayes()
# \donttest{
set.seed(12345)
os_train <- rnorm(n = 3e2)
os_test <- rnorm(n = 3e2)
test_to_print <- at_from_os(os_train, os_test)
# Also: pt_from_os(os_train, os_test) for permutation test
test_to_print
#> Frequentist test for no adverse shift
#>
#> p-value = 0.64048, test statistic (weighted AUC/WAUC) = 0.0806
#>
#> Alternative hypothesis: Pr(WAUC >= 0.0806)
#> => the test set is worse off than training.
#> Sample sizes: 300 in training and 300 in test set.
# }