View source: R/repkfold_ttest.R
repkfold_ttest | R Documentation |
Compute correlated t-statistic and p-value for repeated k-fold cross-validated results
repkfold_ttest(data, n1, n2, k, r, tailed = c("two", "one"), greater = NULL)
data |
|
n1 |
|
n2 |
|
k |
|
r |
|
tailed |
|
greater |
value specifying which value in the |
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).
Bouckaert, R. R., and Frank, E. Evaluating the Replicability of Significance Tests for Comparing Learning Algorithms. Advances in Knowledge Discovery and Data Mining. PAKDD 2004. Lecture Notes in Computer Science, 3056, (2004).
tmp <- data.frame(model = rep(c(1, 2), each = 60),
values = c(stats::rnorm(60, mean = 0.6, sd = 0.1),
stats::rnorm(60, mean = 0.4, sd = 0.1)),
k = rep(c(1, 1, 2, 2), times = 15),
r = rep(c(1, 2), times = 30))
repkfold_ttest(data = tmp, n1 = 80, n2 = 20, k = 2, r = 2, tailed = "two")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.