View source: R/simulate_multilevel_SDE.R
simulate_multilevel_SDE | R Documentation |
Simulate two trajectories following a stochastic differential equation using Euler-Maruyama at two successive discretization levels.
simulate_multilevel_SDE(model, theta, discretization)
model |
a list representing a hidden Markov model, e.g. |
theta |
a vector of parameters as input to model functions |
discretization |
lists containing stepsize, nsteps, statelength, obstimes for fine and coarse levels, and coarsetimes of length statelength_fine indexing time steps of coarse level |
two new trajectories stored as matrices of size xdimension x statelength_coarse/fine.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.