dot-pearson: Calculate Pearson's Correlation Coefficient

Description Usage Arguments Value Examples

Description

Calculates the Pearson's correlation coefficient between two numeric vectors

Usage

1
.pearson(r, g)

Arguments

r

A numeric vector

g

A numeric vector

Value

A numeric of length one.

Examples

1
2
3
4
5
6
7
set.seed(123)
r <- rnorm(10)

set.seed(1234)
g <- rnorm(10)

.pearson(r, g)

colocr documentation built on July 1, 2020, 10:32 p.m.