fratio | R Documentation |
Calculates fratio, distance between matrices
fratio(A, B)
A |
Mutation matrix |
B |
Mutation matrix |
Double
Thore Egeland <Thore.Egeland@nmbu.no>
library(pedtools)
library(pedmut)
n = 2
p = c(0.2, 0.8)
names(p) = paste(1:n)
mutmat = mutationMatrix("equal", rate = 0.02, alleles = 1:2, afreq = p)
res = snpExample(mutmat, afreq = p, adjust = FALSE)
fratio(mutmat, res[[1]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.