pPerm | R Documentation |
Calculate permutation p-value Calculate perutation p-value of actual model performance vs null hypothesis distribution. 'pPerm' will calculate the cumulative (1-tailed) probability of 'actual' belonging to 'permutation_distribution'. 'side' is guessed by actual value compared to median(permutation_distribution). Test is performed on original data OR ranked for non-parametric statistics.
pPerm(
actual,
permutation_distribution,
side = c("smaller", "greater"),
type = "t",
extend = 0.1
)
actual |
Actual model performance (e.g. misclassifications or Q2) |
permutation_distribution |
Null hypothesis distribution from permutation test (same metric as 'actual') |
side |
Smaller or greater than (automatically guessed if omitted) (Q2 and AUC is a "greater than" test, whereas misclassifications is "smaller than") |
type |
one of ('t','non',"smooth","ecdf","rank") |
extend |
extend how much it extend |
p-value
data("freelive2")
actual <- sample(YR2, 1)
permutation_distribution <- YR2
pPerm(actual, permutation_distribution)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.