R package for "State Transitions using Aggregated Markov Models" (STAMM)