Spark Online Training by Edureka

gen.implex: Genealogical implex

Description Usage Arguments Value References See Also Examples

Description

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

Usage

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

Arguments

gen

An object of class GLgen obtained with gen.genealogy, gen.lineages or gen.branching. Required.

pro

Vector of proband id numbers to be included. Default is 0, which will select all individuals without children.

genNo

Vector of generation numbers at which the implex should be calculated. Default is -1, which calculates the implex at each generation.

type

If type="MEAN" (default), implex index values are averaged over all specified probands. If type="IND", the implex index is calculated for all specified proband together. If type="ALL", the implex index is calculated for each specified proband.

onlyNewAnc

If onlyNewAnc="F" (default), all ancestors will be considered. If onlyNewAnc="T", only new ancestors will be counted (i.e., an ancestor is not counted again if it has already been counted in another generation).

...

Option to pass additionnal arguments automaticaly between methods. Internal use only.

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
data(geneaJi) 
genJi<-gen.genealogy(geneaJi) 
gen.implex(genJi)
gen.implex(genJi, type="IND")
## Not run: 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")


Search within the GENLIB package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.