| init_kf | R Documentation |
init_kf computes the starting values x0 and P0 by generalized least
squares using the first n observations.
init_kf(mdl, z = NULL, n = 0)
mdl |
an object of class |
z |
optional time series if it differs from model series. |
n |
integer, number of observations used to estimate the initial conditions. If n < d (dimension of state vector), it defaults to length(z). |
A list with components:
x0 |
initial state vector estimate |
P0 |
covariance matrix of the initial state estimate |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.