| af_snp | R Documentation | 
Computes individual-specific allele frequencies for a single SNP.
af_snp(snp, LF, max_iter = 100, tol = 1e-10)
| snp | vector of 0's, 1's, and 2's | 
| LF | Matrix of logistic factors, with intercept.
Pass in the return value from  | 
| max_iter | Maximum number of iterations for logistic regression | 
| tol | Numerical tolerance for convergence of logistic regression | 
vector of allele frequencies
af()
LF <- lfa(hgdp_subset, 4)
# pick one SNP only
snp <- hgdp_subset[ 1, ]
# allele frequency vector for that SNO only
allele_freqs_snp <- af_snp(snp, LF)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.