The STATE statement option TYPE=LL specifies a (2*dim)-dimensional , needed for defining a dim-dimensional local linear trend. The first dim elements of correspond to the needed multivariate trend, and the subsequent dim elements are needed to capture the slope vector of this trend. can be defined as
where is a sequence of zero mean, independent, Gaussian vectors with covariance and is a 2*dim-dimensional block matrix . The initial condition is fully diffuse ( and ). This is a multivariate generalization of the univariate local linear trend.
The multivariate local linear trend is a useful trend model for multivariate time series data. The trend term for the ith response variable is defined by a component that simply picks the ith element () of . For example, the component ll_i
defined as follows can be used as a trend term in the MODEL statement of the ith response variable:
state localLin(dim) type=ll(slopecov..) ...; component ll_3 = localLin[3];