var_error_spearman | R Documentation |
Estimates the variance of Spearman rank correlations (ρ) using the Fieller correction.
var_error_spearman(r, n, correct_bias = TRUE)
r |
Vector of rank correlations. |
n |
Vector of sample sizes. |
correct_bias |
Logical argument that determines whether to correct error-variance estimates for small-sample bias in correlations ( |
The sampling variance of a Spearman rank correlation is approximately:
var_e = 1.06 * (1 - r^2)^2 / (n - 1)
This can be corrected for bias in the sample correlation by first correcting the correlation (see correct_r_bias()
) prior to estimating the error variance.
A vector of sampling-error variances.
Bishara, A. J., & Hittner, J. B. (2017). Confidence intervals for correlations when data are not normal. Behavior Research Methods, 49(1), 294–309. doi: 10.3758/s13428-016-0702-8
var_error_spearman(r = .3, n = 30, correct_bias = TRUE) var_error_spearman(r = .3, n = 30, correct_bias = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.