norm_generate_sample: Generate data from a normal HMM

Description Usage Arguments Value

View source: R/norm_generate_sample.R

Description

This function generates data from a normal HMM with specified parameters.

Usage

1
norm_generate_sample(num_sample, hmm, design, state_dep_dist_pooled = FALSE)

Arguments

num_sample

The size of the desired sample (number of timesteps).

hmm

A list of parameters that specify the normal HMM, including num_states, num_variables, num_subjects, num_covariates, mu, sigma, beta, delta.

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 mu and sigma should be treated as equal for all subjects.

Value

A list of the data and the states that generated the data.


simonecollier/lizardHMM documentation built on Dec. 23, 2021, 2:24 a.m.