Description Usage Arguments Value Examples
Simulate phenotype using genotype data given number of QTLs and heritability.
1 | sim_qtl_pheno(geno, h2, alpha, nqtl, distribution = "norm")
|
geno |
genotype data, col1=genoid, col2 and after=snpid, coding: 0,1,2 (no missing data allowed) [data.frame]. |
h2 |
Broad sense heritability of the trait [numeric(0-1)]. |
alpha |
Alpha. |
nqtl |
number of QTL [interger]. |
distribution |
[character=norm] |
return A list of many values.
1 2 3 | geno <- read.table("data/geno.txt", header=TRUE)
pheno <- sim_qtl_pheno(geno, h2=0.7, alpha=0.5, nqtl=10, distribution="norm")
y <- pheno[['y']]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.