Description Usage Arguments Details Value Author(s)
View source: R/compute.weights.R
Compute/create matrix with genotype weights
1 
G 
matrix of genotypes (genetic variants as columns,
individuals as rows) as output by the 
weights 
optional numeric vector of genotype weights. If
this option is not specified, the beta distribution is used
for weighting the variants, with each weight given by
w_i = dbeta(f_i, 1, 25)^2, with f_i the minor
allele frequency (MAF) of variant i. This default is the
same as used by the

If the weights
parameter (a numeric vector) is given, this
function will return a matrix with that vector as the
diagonal. If the weights
parameter is not given (equal
to NULL
) the genotype weights will be calculated using
the beta distribution (see the explanation of the
weights
parameter).
Matrix with genotype weights.
Karim Oualkacha, Lennart C. Karssen
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.