STATESPACE Procedure

FORM Statement

  • FORM variable value …;

The FORM statement specifies the number of times a variable is included in the state vector. Values can be specified for any variable listed in the VAR statement. If a value is specified for each variable in the VAR statement, the state vector for the state space model is entirely specified, and automatic selection of the state space model is not performed.

The FORM statement forces the state vector, bold z Subscript t, to contain a specific variable a given number of times. For example, if Y is one of the variables in bold x Subscript t, then the statement

form y 3;

forces the state vector to contain upper Y Subscript t Baseline comma upper Y Subscript t plus 1 vertical-bar t Baseline, and upper Y Subscript t plus 2 vertical-bar t, possibly along with other variables.

The following statements illustrate the use of the FORM statement:

proc statespace data=in;
   var x y;
   form x 3 y 2;
run;

These statements fit a state space model with the following state vector:

bold z Subscript bold t Baseline equals Start 5 By 1 Matrix 1st Row  x Subscript t vertical-bar t Baseline 2nd Row  y Subscript t vertical-bar t Baseline 3rd Row  x Subscript t plus 1 vertical-bar t Baseline 4th Row  y Subscript t plus 1 vertical-bar t Baseline 5th Row  x Subscript t plus 2 vertical-bar t EndMatrix
Last updated: June 19, 2025