generateData {pmhtutorial} | R Documentation |
Generates data from a linear Gaussian state space model
Description
Generates data from a specific linear Gaussian state space model of the form
and
, where
and
denote independent standard
Gaussian random variables, i.e.
.
Usage
generateData(theta, noObservations, initialState)
Arguments
theta |
The parameters |
noObservations |
The number of time points to simulate. |
initialState |
The initial state. |
Value
The function returns a list with the elements:
x: The latent state for
.
y: The observation for
.
Author(s)
Johan Dahlin uni@johandahlin.com
References
Dahlin, J. & Schon, T. B. "Getting Started with Particle Metropolis-Hastings for Inference in Nonlinear Dynamical Models." Journal of Statistical Software, Code Snippets, 88(2): 1–41, 2019.