# Calculate information gain for a fixed range
ig1 = selex.infogain(sample=r2, k=c(8:10), markovModel=mm)
# View the results
selex.infogainSummary()[,c(1,2,3,4,5)]
# Now calculate for the default range
ig2 = selex.infogain(sample=r2, markovModel=mm)
# View the results again
selex.infogainSummary()[,c(1,2,3,4,5)]
Run the code above in your browser using DataLab