randomPersonEP {forrel} | R Documentation |
Random person exclusion power
Description
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.
Usage
randomPersonEP(x, id, markers = NULL, disableMutations = NA, verbose = TRUE)
Arguments
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. |
Value
The EPresult
object returned by exclusionPower()
.
Examples
# 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)