.pearson {colocr} | R Documentation |
Calculate Pearson's Correlation Coefficient
Description
Calculates the Pearson's correlation coefficient between two numeric vectors
Usage
.pearson(r, g)
Arguments
r |
A |
g |
A |
Value
A numeric
of length one.
Examples
set.seed(123)
r <- rnorm(10)
set.seed(1234)
g <- rnorm(10)
.pearson(r, g)
[Package colocr version 0.1.1 Index]