SS(F.=NULL, G=NULL, H=NULL, K=NULL, Q=NULL, R=NULL, z0=NULL, P0=NULL, rootP0=NULL,
constants=NULL,
description=NULL, names=NULL, input.names=NULL, output.names=NULL)
is.SS(obj)
is.innov.SS(obj)
is.nonInnov.SS(obj)
The state space (SS) model is defined by:
z(t) =Fz(t-1) + Gu(t) + Qe(t) y(t) = Hz(t) + Rw(t)
or the innovations model:
z(t) =Fz(t-1) + Gu(t) + Kw(t-1) y(t) = Hz(t) + w(t)
Matrices are as specified above in the arguments, and
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Typically, an non-innovations form is harder to identify than an innovations
form. Non-innovations form would typically be choosen when there is
considerable theoretical or physical knowledge of the system (e.g. the
system was built from known components with measured physical values).
By default, elements in parameter matrices are treated as constants if they
are exactly 1.0 or 0.0, and as parameters otherwise. A value of 1.001 would
be treated as a parameter, and this is the easiest way to initialize an
element which is not to be treated as a constant of value 1.0. Any matrix
elements can be fixed to constants by specifying the list constants
.
Matrices which are not specified in the list will be treated in the default
way. An alternative for fixing constants is the function fixConstants
.
TSmodel
ARMA
simulate.SS
l.SS
state
smoother
fixConstants
f <- array(c(.5,.3,.2,.4),c(2,2))
h <- array(c(1,0,0,1),c(2,2))
k <- array(c(.5,.3,.2,.4),c(2,2))
ss <- SS(F=f,G=NULL,H=h,K=k)
is.SS(ss)
ss
Run the code above in your browser using DataLab