Description Usage Arguments Value
View source: R/norm_generate_sample.R
This function generates data from a normal HMM with specified parameters.
1 | norm_generate_sample(num_sample, hmm, design, state_dep_dist_pooled = FALSE)
|
num_sample |
The size of the desired sample (number of timesteps). |
hmm |
A list of parameters that specify the normal HMM, including
|
design |
A list of design matrices for each subject with each row indicating the time and each column indicating the value of the covariate. |
state_dep_dist_pooled |
A logical variable indiacting whether the
state dependent distribution parameters |
A list of the data and the states that generated the data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.