View source: R/PopulationSNPSet.R
PopulationSNPSet | R Documentation |
PopulationSNPSet
is used to generate a population matrix, where each row is a genotypic profile
corresponding to an individual. It can be used to generate a matrix of genotypes according to an observed
dependence structure. This function is based on the GenOrd
package.
PopulationSNPSet(n, Sigma = NULL, maf = NULL, marginal = NULL,
X = NULL)
n |
the desired number of individuals |
Sigma |
a correlation matrix |
maf |
a vector of minor allele frequencies; if this is given, Hardy-Weinberg equilibrium is assumed |
marginal |
a list of marginal distributions, where each element of the list is a vector of length 1 or 2
of cumulative probabilities. See the |
X |
an observed matrix of genotypic profiles; if this is given, the sample is simulated according to
the dependence structure and marginal distributions observed in |
A matrix X
of size N x p of genotypic profiles (displayed as rows).
Alessandro Barbiero and Pier Alda Ferrari (2015). GenOrd: Simulation of Discrete Random Variables with Given Correlation Matrix and Marginal Distributions. R package version 1.4.0. https://CRAN.R-project.org/package=GenOrd
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.