This function simulates state-dependent observations.
simulate_observations(
markov_chain,
sdd,
mus,
sigmas,
dfs = 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, one of
"t", "gamma", and "lnorm".
A numeric vector of expected values.
A numeric vector of standard deviations.
A numeric vector of degrees of freedom.
Only relevant if sdd = "t".
Set a seed.
An integer, the total length of the output vector.
Must be greater or equal than length(markov_chain).