ses {BAT} | R Documentation |
Calculates the standard effect size from observed and estimated values.
ses(obs, est, param = TRUE, p = TRUE)
obs |
A single observed value. |
est |
A vector with estimated values. |
param |
Value is calculated with parametric or non-parametric method. Because standardized effect sizes may lead to biased conclusions if null values show an asymmetric distribution or deviate from normality, non-parametric effect sizes use probit transformed p-values (Lhotsky et al., 2016). |
p |
Boolean indicating whether the p-value should be calculated based on the rank of 'obs' in 'est'. |
The ses value or a vector with ses and p-value.
Lhotsky et al. (2016) Changes in assembly rules along a stress gradient from open dry grasslands to wetlands. Journal of Ecology, 104: 507-517.
est = rnorm(1000, 500, 100)
ses(100, est)
ses(100, est, param = FALSE)
ses(500, est)
ses(500, est, param = FALSE)
ses(900, est, p = TRUE)
ses(900, est, param = FALSE, p = TRUE)