Description Usage Arguments Value
Simulate phenotypes using a linear model. When a prevalence is given, the liability threshold is used to convert liabilities to a binary outcome. The genetic and environmental liabilities are scaled such that the variance of the genetic liability is equality the requested heritability, and the variance of the total liability is 1.
1 2 3 4 5 6 7 8 9 10  snp_simuPheno(
G,
h2,
M,
K = NULL,
ind.row = rows_along(G),
ind.possible = cols_along(G),
effects.dist = c("gaussian", "laplace"),
ncores = 1
)

G 
A FBM.code256
(typically 
h2 
Heritability. 
M 
Number of causal variants. 
K 
Prevalence. Default is 
ind.row 
An optional vector of the row indices (individuals) that
are used. If not specified, all rows are used. 
ind.possible 
Indices of possible causal variants. 
effects.dist 
Distribution of effects.
Either 
ncores 
Number of cores used. Default doesn't use parallelism. You may use nb_cores. 
A list with 3 elements:
$pheno
: vector of phenotypes,
$set
: indices of causal variants,
$effects
: effect sizes corresponding to set
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.