Learn R Programming

euroMix (version 1.1.1)

qkappa: Calculates joint distribution for a pair of individals given IBD probabilities

Description

Based on conditional distribution given IBD from q012, the joint probability distribution for two individuals are given for specified IBD probabilities

Usage

qkappa(kappa = c(0, 1, 0), q = NULL)

Arguments

kappa
Three reals summing to 1 giving IBD (0,1,2) probabilities
q
The joint probability distribution for two individuals

Value

  • A matrix giving the joint distribution

References

To appear

Examples

Run this code
require(paramlink)
#Sibs. One SNP marker with 
qkappa(kappa=c(0.25,0.5,0.25),q012(p=c(0.2,0.8)))

Run the code above in your browser using DataLab