Description Usage Arguments Value Examples
Compute the effective sample size for a LMM.
1 |
G |
A FBM matrix of genotypes. Missing values are not handled. |
cols |
A vector of columns of G to be used in the model. By default, all columns of G are used. |
M |
A scalar for normalization of the genetic relationship matrix: GRM = Z'Z / M, where Z is a matrix of standardized genotypes. By default, M = length(cols). |
h2 |
The estimated heritability in the LMM. |
s2 |
The estimated scaling constant for the variance components in the LMM. |
A data.frame of results.
1 2 3 4 5 6 7 | G <- attach_example200()
G
G[1:5, 1:10]
ess(G, h2 = 0.5)
ess(G, h2 = 0.8)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.