ou2 | R Documentation |
ou2()
constructs a ‘pomp’ object encoding a bivariate discrete-time Ornstein-Uhlenbeck process with noisy observations.
ou2(
alpha_1 = 0.8,
alpha_2 = -0.5,
alpha_3 = 0.3,
alpha_4 = 0.9,
sigma_1 = 3,
sigma_2 = -0.5,
sigma_3 = 2,
tau = 1,
x1_0 = -3,
x2_0 = 4,
times = 1:100,
t0 = 0
)
alpha_1 , alpha_2 , alpha_3 , alpha_4 |
entries of the |
sigma_1 , sigma_2 , sigma_3 |
entries of the lower-triangular |
tau |
measurement error s.d. |
x1_0 , x2_0 |
latent variable values at time |
times |
vector of observation times |
t0 |
the zero time |
If the state process is X(t) = (X_{1}(t),X_{2}(t))
, then
X(t+1) = \alpha X(t) + \sigma \epsilon(t),
where \alpha
and \sigma
are 2x2 matrices,
\sigma
is lower-triangular, and
\epsilon(t)
is standard bivariate normal.
The observation process is Y(t) = (Y_1(t),Y_2(t))
, where
Y_i(t) \sim \mathrm{normal}(X_i(t),\tau)
.
A ‘pomp’ object with simulated data.
More examples provided with pomp:
blowflies
,
childhood_disease_data
,
compartmental_models
,
dacca()
,
ebola
,
gompertz()
,
pomp_examples
,
ricker()
,
rw2()
,
verhulst()
po <- ou2()
plot(po)
coef(po)
x <- simulate(po)
plot(x)
pf <- pfilter(po,Np=1000)
logLik(pf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.