Compute SNP-by-SNP goodness-of-fit when compared to population
structure. This can be aggregated to determine genome-wide
goodness-of-fit for a particular value of
model.gof(X, LF, B)
A matrix of SNP genotypes, i.e. an integer matrix of 0's,
1's, 2's and
matrix of logistic factors
number of null datasets to generate,
This function returns p-values for LFA model goodness of fit based on a simulated null.
vector of p-values for each SNP.
Genotype matrix is expected to be a matrix of integers with values 0, 1, and 2. Currently no support for missing values. Note that the coding of the SNPs does not affect the algorithm.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.