pval_cor: p-value of sample correlation coefficient

Description Usage Arguments

Description

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.

Usage

1
pval_cor(r, rho, n, alternative = "greater")

Arguments

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"


Thie1e/subsetcor documentation built on May 9, 2019, 4:41 p.m.