This function simulates state-dependent observations.
simulate_observations(
markov_chain,
sdd,
mu,
sigma = NULL,
df = NULL,
seed = NULL,
total_length = length(markov_chain)
)A numeric vector of length total_length, where the first
length(markov_chain) elements are numeric values and the last
total_length - length(markov_chain) elements are NA_real_.
A numeric vector of states of a Markov chain.
A character, the name of the state-dependent distribution.
A numeric vector of expected values.
A numeric vector of standard deviations (if any).
A numeric vector of degrees of freedom (if any).
Sets a seed for the observation sampling.
An integer, the total length of the output vector.
Must be greater or equal than length(markov_chain).