| Top |
| kalman * | kalman_new_minimal () |
| void | kalman_free () |
| kalman * | kalman_new () |
| int | is_kalman_bundle () |
| gretl_matrix * | kalman_smooth () |
| double | kalman_get_loglik () |
| double | kalman_get_arma_variance () |
| int | kalman_set_initial_state_vector () |
| int | kalman_set_initial_MSE_matrix () |
| void | kalman_set_arma_ll () |
| void | kalman_attach_data () |
| void * | kalman_get_data () |
| void | kalman_attach_printer () |
| PRN * | kalman_get_printer () |
kalman * kalman_new_minimal (gretl_matrix *M[],int copy[],int nmat,int dkvar,int *err);
kalman * kalman_new (gretl_matrix *a,gretl_matrix *P,gretl_matrix *T,gretl_matrix *BT,gretl_matrix *ZT,gretl_matrix *HH,gretl_matrix *GG,gretl_matrix *y,gretl_matrix *x,gretl_matrix *mu,gretl_matrix *V,int *err);
Allocates and initializes a Kalman struct, which can subsequently be used for filtering and smoothing.
a |
r x 1 initial state vector. |
|
P |
r x r initial precision matrix. |
|
T |
r x r state transition matrix. |
|
BT |
n x k matrix of coefficients on exogenous variables in the observation equation, transposed. |
|
ZT |
n x r matrix of coefficients on the state variables in the observation equation, transposed. |
|
VS |
r x r contemporaneous covariance matrix for the errors in the state equation. |
|
VY |
n x n contemporaneous covariance matrix for the errors in the observation equation (or NULL if this is not applicable). |
|
y |
T x n matrix of observable variable(s). |
|
x |
T x k matrix of exogenous variable(s). May be NULL if there are no exogenous variables, or if there's only a constant. |
|
mu |
r x 1 vector of constants in the state transition, or NULL. |
|
V |
T x n matrix in which to record forecast errors (or NULL if this is not required). |
|
err |
location to receive error code. |
double
kalman_get_loglik (const kalman *K);
Retrieves the log-likelhood calculated via a filtering run.
double
kalman_get_arma_variance (const kalman *K);
Retrieves the estimated variance for an ARMA model estimated using the Kalman filter.
int kalman_set_initial_state_vector (kalman *K,const gretl_vector *a);
Resets the initial value of the state vector in a Kalman
struct, using the values from a
. See also kalman_new().
int kalman_set_initial_MSE_matrix (kalman *K,const gretl_matrix *P);
Resets the initial value of the MSE matrix in a Kalman
struct, using the values from P
. See also kalman_new().