View source: R/fonctionsBase.R
gen.completeness | R Documentation |
Returns the completeness of the genealogical data for the specified probands
gen.completeness( gen, pro="0", genNo=-1, type="MEAN", ...)
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 completeness should be calculated. Default is -1, which calculates completeness at each generation. |
type |
If type="MEAN" (default), mean completeness over all specified probands is calculated. If type="IND", completeness is calculated for each specified proband. |
... |
Option to pass additionnal arguments automaticaly between methods. Internal use only. |
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.
Cazes P, Cazes MH. (1996) Comment mesurer la profondeur genealogique d'une ascendance? Population (French Ed) 51:117-140.
gen.genealogy
gen.rec
gen.occ
gen.implex
gen.meangendepth
data(geneaJi)
genJi<-gen.genealogy(geneaJi)
gen.completeness(genJi, type="IND")
# For the 4th generation
gen.completeness(genJi, type="IND", genNo=4)
data(genea140)
gen140<-gen.genealogy(genea140)
gen.completeness(gen140)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.