Learn R Programming

ibdreg (version 0.3.8)

ibd.moments: calculate moments (mean, variance) for simulated ibd vectors

Description

calculate moments (mean, variance) for simulated ibd vectors for an individual predigree from sim.mark.prop

Usage

ibd.moments(simped, person.indx, male, x.linked=FALSE)

Value

a list with person1.id person2.id sm and sv

Arguments

simped

The object returned from sim.mark.prop

person.indx

person identifier

male

binary code (1/0) for if person is male

x.linked

logical, if TRUE, apply the method for an x-linked chromosome

See Also

sim.mark.prop