Skip to contents

Computation of the covariance, and Pearson, Kendall and Spearman correlations coefficients.

Usage

summary_xy(x, y)

Arguments

x

A numeric vector

y

A numeric vector

Value

A tibble (1x4) with the computed coefficients.

Examples


x <- rnorm(100)

y <- rnorm(100)

plot(x,y)


summary_xy(x,y)
#> # A tibble: 1 × 4
#>   covariance pearson kendall spearman
#>        <dbl>   <dbl>   <dbl>    <dbl>
#> 1    -0.0398 -0.0348 -0.0295  -0.0467