Skip to contents

Confidence interval of a correlation coefficient

Usage

rhoCI(rho, n, alpha = 0.05)

Arguments

rho

correlation coefficient

n

number of data points used to estimate correlation coefficient

alpha

confidence level

Value

a dataframe

Examples

rhoCI(rho = seq(0.1, 0.9, 0.1), n = c(100))
#>   alpha   n rho          lwr       upr     width
#> 1  0.05 100 0.1 -0.098349888 0.2907081 0.3980084
#> 2  0.05 100 0.2  0.003728345 0.3814340 0.3980084
#> 3  0.05 100 0.3  0.110067668 0.4687942 0.3980084
#> 4  0.05 100 0.4  0.220940575 0.5529726 0.3980084
#> 5  0.05 100 0.5  0.336643304 0.6341398 0.3980084
#> 6  0.05 100 0.6  0.457498476 0.7124547 0.3980084
#> 7  0.05 100 0.7  0.583858098 0.7880650 0.3980084
#> 8  0.05 100 0.8  0.716106992 0.8611083 0.3980084
#> 9  0.05 100 0.9  0.854666705 0.9317133 0.3980084