Samples the health state for each individual given their row of the transition probability matrix. A multinomial sampling approach is used whereby a uniform random number is compared against the cumulative probabilities to determine the next state.
Arguments
- m_trans_probs
A matrix of transition probabilities with rows corresponding to individuals and columns to states.
- v_states_names
Character vector of all state names in the order used throughout the model.
- assert
Logical. Boolean for whether to run full assertion of inputs. This feature is useful when running probabilistic sensitivity analysis (PSA).