cor.pas: cor.pas : Correlation calculation with nearest neighbor (with...

Description Usage Arguments Details Value

View source: R/useFonc.r

Description

cor.pas : Correlation calculation with nearest neighbor (with genetic distance)

Usage

1
cor.pas(meth, pas = 1)

Arguments

meth

matrice of mDNA (the matrix needs to be ordered according to the chromosomes and the chromosomal position)

pas

1 by default, corresponds to the nearest neighbor. 2 for the second closest neighbor and etc ...

Details

This function makes it possible to calculate the correlation with the nearest neighbor (or the second or third, etc.). Correlation of pearson by default. The function cor.pas and different from the functions cor.paired, for not > 1 it does not calculate the correlation with all the neighbors (see the code of the function to understand).

Value

a vector of correlation


jumentib/useFonc documentation built on Nov. 18, 2019, 3:17 p.m.