sim_hmm generate n action sequences from HMM based on given parameters.
The lengths of the generated sequences are simulated from a Poission distribution with
mean mean_len and at least min_len.
sim_hmm returns a list of n generated action sequences if return_state = FALSE.
If return_state = TRUE, it returns a list of two lists, seqs and state_seqs. seqs gives
the generated action sequences. state_seqs gives the corresponding hidden state sequences.
Arguments
n
number of action sequences to be generated
paras
a list containing specified HMM parameters: state-transition probability matrix (P),
state-action probability matrix (Q), and initial state probability (P1).
min_len
minimum length of generated sequences
mean_len
mean length of generated sequences
return_state
logical. Whether generated hidden state sequences should be returned or not.