Description Usage Arguments Details Value Examples
Generate Random Phenotype with Given Heritability
1 | sim.cross.pheno(h2, geno, background = "GRM", ...)
|
h2 |
heritability |
geno |
" |
background |
method to generate genetic background, see Details |
... |
parameters passed to |
Currently two polygenic backgrounds are supported:
If background = "GRM"
then the genetic effect is generated from a multivariate
normal distribution with genetic similarity matrix as variance matrix. If
background = "all-snps"
then genetic effect is a sum of small gaussian distributed
effect at every SNP location.
matrix with phenotype data
1 2 3 4 | cross <- sim.cross.geno(250, nmar=10)
cross$pheno <- sim.cross.pheno(0.5, cross)
cross$pheno <- sim.cross.pheno(0.5, cross, method = "kinship")
cross$pheno <- sim.cross.pheno(0.5, cross, background = "all-snps")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.