kfold_ttest | R Documentation |
Compute correlated t-statistic and p-value for k-fold cross-validated results
kfold_ttest(x, y, n, k, tailed = c("two", "one"), greater = NULL)
x |
|
y |
|
n |
|
k |
|
tailed |
|
greater |
|
data.frame
containing the test statistic and p-value
Trent Henderson
Nadeau, C., and Bengio, Y. Inference for the Generalization Error. Machine Learning 52, (2003).
Corani, G., Benavoli, A., Demsar, J., Mangili, F., and Zaffalon, M. Statistical comparison of classifiers through Bayesian hierarchical modelling. Machine Learning, 106, (2017).
x <- rnorm(100, mean = 95, sd = 0.5)
y <- rnorm(100, mean = 90, sd = 1)
kfold_ttest(x = x, y = y, n = 100, k = 5, tailed = "two")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.