var_error_r | R Documentation |
Estimates the error variance of Pearson correlations (r
).
var_error_r(r, n, correct_bias = TRUE)
r |
Vector of correlations. |
n |
Vector of sample sizes. |
correct_bias |
Logical argument that determines whether to correct error-variance estimates for small-sample bias in correlations (TRUE) or not (FALSE). |
The sampling variance of a Pearson correlation is approximately:
var_{e}=\frac{(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.
Schmidt, F. L., & Hunter, J. E. (2015). Methods of meta-analysis: Correcting error and bias in research findings (3rd ed.). Sage. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.4135/9781483398105")}. p. 99.
var_error_r(r = .3, n = 30, correct_bias = TRUE)
var_error_r(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.