resampled_ttest {correctR} | R Documentation |
Compute correlated t-statistic and p-value for resampled data
Description
Compute correlated t-statistic and p-value for resampled data
Usage
resampled_ttest(x, y, n, n1, n2, tailed = c("two", "one"), greater = NULL)
Arguments
x |
|
y |
|
n |
|
n1 |
|
n2 |
|
tailed |
|
greater |
|
Value
data.frame
containing the test statistic and p-value
Author(s)
Trent Henderson
References
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).
Examples
x <- rnorm(100, mean = 95, sd = 0.5)
y <- rnorm(100, mean = 90, sd = 1)
resampled_ttest(x = x, y = y, n = 100, n1 = 80, n2 = 20, tailed = "two")