The STATESPACE Procedure |
Specifying the State Space Model |
Instead of allowing the STATESPACE procedure to select the model automatically, you can use FORM and RESTRICT statements to specify a state space model.
Use the FORM statement to control the form of the state vector. You can use this feature to force PROC STATESPACE to estimate and forecast a model different from the model it would select automatically. You can also use this feature to reestimate the automatically selected model (possibly with restrictions) without repeating the canonical correlation analysis.
The FORM statement specifies the number of lags of each variable to include in the state vector. For example, the statement FORM X 3; forces the state vector to include , , and . The following statement specifies the state vector , which is the same state vector selected in the preceding example:
form x 2 y 1;
You can specify the form for only some of the variables and allow PROC STATESPACE to select the form for the other variables. If only some of the variables are specified in the FORM statement, canonical correlation analysis is used to determine the number of lags included in the state vector for the remaining variables not specified by the FORM statement. If the FORM statement includes specifications for all the variables listed in the VAR statement, the state vector is completely defined and the canonical correlation analysis is not performed.
After you know the form of the state vector, you can use the RESTRICT statement to fix some parameters in the and matrices to specified values. One use of this feature is to remove insignificant parameters by restricting them to 0.
In the introductory example shown in the preceding section, the F[2,3] parameter is not significant. (The parameters estimation output shown in Figure 25.6 gives the t statistic for F[2,3] as –0.06. F[3,3] and F[3,1] also have low significance with .)
The following statements reestimate this model with F[2,3] restricted to 0. The FORM statement is used to specify the state vector and thus bypass the canonical correlation analysis.
proc statespace data=in out=out lead=10; var x(1) y(1); id t; form x 2 y 1; restrict f(2,3)=0; run;
The final estimates produced by these statements are shown in Figure 25.10.
State Vector | ||
---|---|---|
x(T;T) | y(T;T) | x(T+1;T) |
Copyright © 2008 by SAS Institute Inc., Cary, NC, USA. All rights reserved.