Skip to contents

This function determines the next state base on the current state and the transition matrix.

Usage

determine_next_state(current_state, transition_df)

Arguments

current_state

a value of the current state

transition_df

a dataframe of the transition matrix

Value

a value for the next state

Author

Francois Bassac

Examples

N_states = 3
lambdas = lambda_determination(N_states)
transition_df = transfer_probabilities(N_states)
determine_next_state(1, transition_df)
#> [1] 3