Learn R Programming

GENLIB (version 1.0.1)

gen.entropyVar: Variance of entropy index

Description

Returns the variance of the entropy index

Usage

gen.entropyVar( gen, pro = "0", type = "MEAN", check = "1", ...)

Arguments

Value

A data frame with only one numeric value when type is "MEAN". When type is "IND", the number of rows 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. Kouladjian K. (1986) Une mesure d'entropie genealogique. Chicoutimi, SOREP, Document III-C-43. De Brakaeleer M, Bellis G. (1994) Genealogies et reconstitutions de familles en genetique humaine. Dossiers et Recherches, no 43, INED, Paris.

See Also

gen.gc

Examples

Run this code
data(geneaJi) 
genJi<-gen.genealogy(geneaJi) 
gen.entropy(genJi, type="IND")
gen.entropyVar(genJi, type="IND")
gen.entropyVar(genJi, type="MEAN")

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

#gen.entropy(gen140, pro=c(454422, 676521, 677273, 717537, 717634, 717709, 868572), type="IND")
#gen.entropyVar(gen140, pro=c(454422, 676521, 677273, 717537, 717634, 717709, 868572), type="IND")

Run the code above in your browser using DataLab