View source: R/randomPersonEP.R
randomPersonEP | R Documentation |
This is a special case of exclusionPower()
, computing the power to exclude
a random person as a given pedigree member. More specifically, the function
computes the probability of observing, in an individual unrelated to the
family individual, a genotype incompatible with the typed family members.
randomPersonEP(x, id, markers = NULL, disableMutations = NA, verbose = TRUE)
x |
A |
id |
The ID label of a single pedigree member. |
markers |
A vector indicating the names or indices of markers attached
to the source pedigree. If NULL (default), then all markers attached to the
source pedigree are used. If |
disableMutations |
This parameter determines how mutation models are treated. Possible values are as follows:
|
verbose |
A logical. |
The EPresult
object returned by exclusionPower()
.
# Four siblings:
x = nuclearPed(4)
# First 3 sibs typed with 4 triallelic markers
x = markerSim(x, N = 4, ids = 3:5, alleles = 1:3, seed = 577, verbose = FALSE)
# Probability that a random man is excluded as the fourth sibling
randomPersonEP(x, id = 6)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.