Calculates genotype correlation using a fast check (fc) method.

get.correl.fc(g1, g2)

Arguments

g1

Genotype vector.

g2

Genotype vector.

Value

Numeric value of correlation.

Author

Roberto Higa

Examples

g1 <- sample(0:2, 10, TRUE)
g2 <- sample(0:2, 10, TRUE)
get.correl.fc(g1, g2)
#> [1] 0.6