Simulates a normal distributed phenotype with effects either normal or gamma distributed.
1 2 | normalPheno(snp, n.rep = 1, n.loci = 50, h2 = 0.5, snp.probs = NULL,
eff.dist = c("gaussian", "gamma"), shape = 0.5)
|
snp |
An object of S4 class snpMatrix. |
n.rep |
Number of replication per individual. For the replication no effects at the phenotype are simulated. |
n.loci |
Number of loci with effect at the phenotype. |
h2 |
Trait heritability. |
snp.probs |
A vector of probabilities for each SNP to be selected as a causal loci. |
eff.dist |
Distribution from which the effects are drown. |
shape |
See |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.