example_3way_3latent {LEGIT} | R Documentation |
Simulated example of a 3 way interaction GxExZ model
Description
Simulated example of a 3 way interaction GxExZ model (where G, E and Z are latent variables).
if logit =FALSE |
if logit =TRUE
|
Usage
example_3way_3latent(N, sigma = 1, logit = FALSE, seed = NULL)
Arguments
N |
Sample size. |
sigma |
Standard deviation of the gaussian noise (if |
logit |
If TRUE, the outcome is transformed to binary with a logit link. |
seed |
RNG seed. |
Value
Returns a list containing, in the following order: data.frame with the observed outcome (with noise) and the true outcome (without noise), list containing the data.frame of the genetic variants (G), the data.frame of the environments (E) and the data.frame of the
environments (Z), vector of the true genetic coefficients, vector of the true
environmental coefficients, vector of the true
environmental coefficients, vector of the true main model coefficients
Examples
example_3way_3latent(5,1,logit=FALSE)
example_3way_3latent(5,0,logit=TRUE)
[Package LEGIT version 1.4.1 Index]