Description Usage Arguments Value Examples
Function for deriving the estimated standard deviation of the genetic variants from the first-order and second-order statistics, assuming these are binomially distributed.
1  | binomial_sigma_G(SS, n = 2)
 | 
SS | 
 Numeric matrix of first-order and second-order statistics.  | 
n | 
 Integer number of alleles (trials) for the binomial genetic variables.  | 
Numeric vector containing the standard deviations of the genetic variants.
1 2 3 4  | J <- 5 # number of instruments
par <- random_Gaussian_parameters(J)
dat <- generate_data_MASSIVE_model(N = 1000, n = 2, p = rep(0.3, J), par)
binomial_sigma_G(dat$SS)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.