Estimation of the parameters in a simple state space via the EM algorithm.
EM0(num, y, A, mu0, Sigma0, Phi, cQ, cR, max.iter = 50, tol = 0.01)
Estimate of Phi
Estimate of Q
Estimate of R
Estimate of initial state mean
Estimate of initial state covariance matrix
-log likelihood at each iteration
number of iterations to convergence
relative tolerance at convergence
number of observations
observation vector or time series
time-invariant observation matrix
initial state mean vector
initial state covariance matrix
state transition matrix
Cholesky-like decomposition of state error covariance matrix Q -- see details below
Cholesky-like decomposition of state error covariance matrix R -- see details below
maximum number of iterations
relative tolerance for determining convergence
D.S. Stoffer
cQ
and cR
are the Cholesky-type decompositions of Q
and R
. In particular, Q = t(cQ)%*%cQ
and R = t(cR)%*%cR
is all that is required (assuming Q
and R
are valid covariance matrices).
You can find demonstrations of astsa capabilities at FUN WITH ASTSA.
The most recent version of the package can be found at https://github.com/nickpoison/astsa/.
In addition, the News and ChangeLog files are at https://github.com/nickpoison/astsa/blob/master/NEWS.md.
The webpages for the texts are https://www.stat.pitt.edu/stoffer/tsa4/ and https://www.stat.pitt.edu/stoffer/tsda/.