### Example 1: Lumping a mutation matrix
mat = mutationMatrix("eq", alleles = 1:5,
afreq = rep(0.2, 5), rate = 0.1)
mat
# Lump alleles 3, 4 and 5
mat2 = lumpedMatrix(mat, lump = 3:5)
mat2
# Example 2: Full model, proportional
mutrate = list(male = 0.1, female = 0.2)
mod = mutationModel("prop", alleles = 1:4,
rate = mutrate, afreq = c(.1,.2,.3,.4))
mod
# Lump alleles 3 and 4
mod2 = lumpedModel(mod, lump = 3:4)
mod2
Run the code above in your browser using DataLab