randomSample {relSim} | R Documentation |
Generate a random sample of related (or unrelated) pairs of people
Description
Generate a random sample of unrelated, full-sib, or parent/child pairs of profiles at a single locus.
Usage
randomSample(nLoc, Freqs, rel = "UN", N = 10000)
Arguments
nLoc |
The locus number to sample from |
Freqs |
A list containg elements |
rel |
One of 'UN', 'FS', or 'PC' for unrelated, full-sib, or parent/child pairs respectively. |
N |
The sample size |
Value
An N by 4 matrix of random profiles. The first two columns represent the genotype of person one and the second two columns represent the genotype of column two. Note that the random profiles do not use the orginal allele designations.
Author(s)
James M. Curran
See Also
randomProfile, randomSib, randomChild
Examples
data(fbiCaucs)
G = randomSample(1, fbiCaucs, "FS", 100)
[Package relSim version 1.0.0 Index]