p2ses | R Documentation |
The function computes the SES (standardized effect size) from the p value for permutation/randomisation tests as proposed by Botta-Dukat (2018).
p2ses(p, alternative = c("two.sided", "less", "greater"))
p |
numeric vector of p values. |
alternative |
a character string specifying the alternative hypothesis,
must be one of |
The function uses the probit transformation (qnorm
) to compute
an alternative SES based on p values from a permutation/randomization test
as proposed by Botta-Dukat (2018) for skewed distributions.
SES
Matthias Kohl Matthias.Kohl@stamats.de
Botta-Dukat, Z (2018). Cautionary note on calculating standardized effect size (SES) in randomization test. Community Ecology 19(1), 77-83.
## symmetric case
x <- rnorm(100)
res <- perm.t.test(x)
p2ses(res$p.value)
abs(res$statistic)
## skewed case
x <- rgamma(100, shape = 5)
res <- perm.t.test(x, mu = 5)
p2ses(res$p.value)
abs(res$statistic)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.