Regime switching lognormal model in r. This is known as the Markov property.