Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


fHMM (version 1.1.1)

simulate_data: Simulate data

Description

This helper function simulates data for the {fHMM} package.

Usage

simulate_data(controls, true_parameters, seed = NULL)

Value

A list containing the following elements:

  • the matrix of time_points,

  • the matrix of the simulated markov_chain,

  • the matrix of the simulated data,

  • the numeric vector of fine-scale chunk sizes T_star if controls$hierarchy = TRUE.

Arguments

controls

An object of class fHMM_controls.

true_parameters

An object of class fHMM_parameters, used as simulation parameters. By default, true_parameters = NULL, i.e., sampled true parameters.

seed

Set a seed for the data simulation. No seed per default.