Description Usage Arguments Value
Simulates response Y under the mcLMM model with the given parameters. Univariate LMM with 012 genotype value as covariate (sampled from binomial with 0.5 MAF)
1 | simulate_data(ni, context.weights = NULL, var.e, var.g, random.seed = NULL)
|
ni |
Number of individuals |
context.weights |
Sampling rates for each context. Will append
a 1 to these rates to ensure each sample has
at least 1 context. Total number of contexts
will be |
var.e |
Residual variance |
var.g |
Within-individual residual variance + covariance |
random.seed |
Seed for reproducibility |
A list with slots X
, K
, and Y
serving as
input for EMMA R package (design matrix, kinship matrix, and
response vector, respectively) and slots X.mc
and Y.mc
as input for the mcLMM functions. See mc_mle
or
mc_remle
documentation for more details on mcLMM input.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.