Description Usage Arguments Value Examples
Function to generate data from a MASSIVE generating model.
1 | generate_data_MASSIVE_model(N, n, p, par, seed = NULL, log_scale = FALSE)
|
N |
Integer number of observations. |
n |
Integer number of alleles (trials) for the binomial genetic variables. |
p |
Numeric expected allele frequencies for the genetic variables. |
par |
List of MASSIVE model parameters |
seed |
Integer representing seed for random number generation. |
log_scale |
Logical flag indicating whether scale parameters sigma_X and sigma_Y are given on the log-scale or normal scale. |
List containing generate data vector as well as the scatter matrix of first-order and second-order statistics.
1 2 3 | J <- 5 # number of instruments
par <- random_Gaussian_parameters(J)
generate_data_MASSIVE_model(N = 1000, n = 2, p = rep(0.3, J), par)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.