Learn R Programming

GENLIB (version 1.1.10)

gen.phiOver: Kinship above threshold

Description

Returns the pairs of individuals with kinship coefficient values greater than specified threshold.

Usage

gen.phiOver( phiMatrix, threshold)

Value

A data frame containing the probands and their kinship.

Arguments

phiMatrix

A square matrix of kinship coefficients obtained for example with gen.phi. Required.

threshold

Threshold of kinship values to return.

See Also

gen.genealogy gen.phi gen.phiMean gen.phiCI

Examples

Run this code
data(geneaJi) 
genJi<-gen.genealogy(geneaJi) 
kinship<-gen.phi(genJi)
gen.phiOver(kinship, 0.1)

# \donttest{
data(genea140) 
gen140<-gen.genealogy(genea140) 
phi9subj<-gen.phi(gen140,pro=c(408758,408950,409082,409111,676521,717537,717634,717709,868572))
gen.phiOver(phi9subj,0.025)
# }

Run the code above in your browser using DataLab