Based on the closed form solution in Provost (2015). May fail for large n (>200). Calculates probability of observing a sample correlation coefficient r given a sample size n and the population correlation coefficient rho. Not suitable for assessing the probability of subset correlation coefficients, i.e. correlation coefficients from finite populations.
1 | pval_cor(r, rho, n, alternative = "greater")
|
r |
sample correlation coefficient |
rho |
population correlation coefficient |
n |
sample size |
alternative |
a character string specifying the alternative hypothesis, must be one of "greater" (default) or "less" |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.