View source: R/ThetaMater.M0.R
ThetaMater.M0 | R Documentation |
This function returns a list of each step in the MCMC sampling chain
ThetaMater.M0(k.vec, l.vec, n.vec, c.vec, ngens)
k.vec |
Vector of mutation counts |
l.vec |
Vector of locus lengths |
n.vec |
Vector of sample numbers |
c.vec |
Vector of data pattern counts |
ngens |
Number of generations to run the MCMC |
sim.results <- Coal.Theta.Sim.File(theta = .9/10, n.vec = c(5,5), l.vec = c(100,100), num.loci = 1000, out.file = '~/Desktop/example.alleles')
example.data <- Read.AllelesFile.Threshold(alleles.file = '~/Desktop/example.alleles', threshold = 1000, log.file = '~/Desktop/log.txt')
Theta.Posterior <- MCMC.Theta.M1.R(k.vec = example.data$k.vec, l.vec = example.data$l.vec, n.vec = example.data$n.vec, c.vec = example.data$c.vec, ngens = 10000)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.