Learn R Programming

GENLIB (version 1.0.3)

gen.implex: Genealogical implex

Description

Returns the genealogical implex index (a measure of pedigree collapsing) for the specified probands.

Usage

gen.implex( gen, pro = "0", genNo = -1, type = "MEAN", onlyNewAnc = "F", ...)

Arguments

Value

A data frame with each generation at which the completeness is calculated as rows and one column when type is "MEAN". When type is "IND", the number of columns equals the number of probands specified.

References

Cazes P, Cazes MH. (1996) Comment mesurer la profondeur genealogique d'une ascendance? Population (French Ed) 51:117-140.

See Also

gen.genealogy gen.occ gen.rec gen.meangendepth gen.completeness gen.gc

Examples

Run this code
data(geneaJi) 
genJi<-gen.genealogy(geneaJi) 
gen.implex(genJi)
gen.implex(genJi, type="IND")
For the 5th generation
gen.implex(genJi, type="IND", genNo=5) 

 data(genea140) 
  gen140<-gen.genealogy(genea140) 
  gen.implex(gen140)
  gen.implex(gen140, pro=c(454422, 676521, 677273, 717537, 717634, 717709, 868572))
  gen.implex(gen140, pro=c(454422, 676521, 677273, 717537, 717634, 717709, 868572), type="IND")

Run the code above in your browser using DataLab