Pearson product-moment correlation
Usage
pearson_correlation(x, y, confidence = 0.95)
Arguments
- x, y
Numeric vectors.
- confidence
Confidence level.
Value
An object of class "morie_test_result".
Examples
set.seed(1)
x <- rnorm(30)
pearson_correlation(x, x + rnorm(30))
#> Pearson correlation
#> -------------------
#> statistic = 0.771355
#> p-value = 6.0587e-07
#> df = 28
#> estimate = 0.771355
#> effect = 0.594989
#> CI = [0.569289, 0.885538]
#> n = 30