scores
from model A and mean scores from model B is used.
Under the null hypothesis of no difference, the actually observed
difference between mean scores should not be notably different from
the distribution of the test statistic under permutation.
As the computation of all possible permutations is only feasible for
small datasets, a random sample of permutations is used to obtain the
null distribution. The resulting p-value thus depends on the
.Random.seed.permutationTest(score1, score2, nPermutation = 9999,
plot = FALSE, verbose = FALSE)truehist of the nPermutation
permutation test statistics should be plotted with a vertical line
marking the observed difference of the means.
To customize tmean(score1) - mean(score2)t.test(score1, score2, paired=TRUE)nPermutation).scores to obtain individual scores for
oneStepAhead predictions from a model.
Package symmetry_test to compare
paired samples.permutationTest(rnorm(50, 1.5), rnorm(50, 1), plot = TRUE)Run the code above in your browser using DataLab