Learn R Programming

mut (version 1.1)

ibd1.parental:

Description

Assume IBD is 1 for a pair of non-inbred individuals. The function estimates the probabilities of the four possible combinations of parental origin: (i) paternal-paternal, (ii) paternal-maternal, (iii) maternal-paternal and (iv) maternal-maternal.

Usage

ibd1.parental(x, id.pair, Nsim, cM = 10000, verbose = F, ...)
uniformMap(Mb = NULL, cM = NULL, M = NULL, cm.per.mb = 1, 
	        chromosome = 1)

Arguments

x
A pedigree in the form of a linkdat object.
id.pair
Integer vector of length 2 giving the pair of individuals.
Nsim
Integer. Number of simulations.
cM
NULL, or a non-negative number: The distance in centiMorgan between the two loci.
verbose
logical
Further arguments to be passed on to IBDsim.
Mb
Double
M
Double
cm.per.mb
Double
chromosome
integer

Value

alpha.sample
Each column gives the four alpha values.
alpha.hat
Estimates of alpha.

Details

This is a wrapper for IBDsim.

See Also

IBDsim.

Examples

Run this code
library(IBDsim)
x = doubleFirstCousins()
ids = c(9,10)
ibd1.parental(x, ids, 10)$alpha.hat
x = swapSex(x,3)
ibd1.parental(x, ids, 10)$alpha.hat

Run the code above in your browser using DataLab