Learn R Programming

GENLIB (version 1.0.3)

gen.implexVar: Variance of genealogical implex

Description

Returns the variance of the implex index across probands.

Usage

gen.implexVar( gen, pro = "0", onlyNewAnc = "F", genNo = -1, ...)

Arguments

Value

A data frame with one column and each generation at which the variance is calculated as rows

References

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

See Also

gen.gc

Examples

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

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

Run the code above in your browser using DataLab