VAR
variable-list < / options > ;
The VAR statements list the numeric variables in the DATA= data set whose values are to be accumulated to form the time series.
An input data set variable can be specified in only one VAR statement. You can specify any number of VAR statements. You can
also specify the following options in the VAR statements:
-
ACCUMULATE=option
-
specifies how the data set observations are to be accumulated within each time period for the variables listed in the VAR
statement. If the ACCUMULATE= option is not specified in the VAR statement, accumulation is determined by the ACCUMULATE=
option in the ID statement. See the ACCUMULATE= option in the ID statement for more details.
-
DIF=( numlist )
-
specifies the differencing to be applied to the accumulated time series. The list of differencing orders must be separated
by spaces or commas. For example, DIF=(1,3) specifies first then third order differencing. Differencing is applied after time
series transformation. The TRANSFORM= option is applied before the DIF= option.
-
SDIF=( numlist )
-
specifies the seasonal differencing to be applied to the accumulated time series. The list of seasonal differencing orders
must be separated by spaces or commas. For example, SDIF=(1,3) specifies first then third order seasonal differencing. Differencing
is applied after time series transformation. The TRANSFORM= option is applied before the SDIF= option.
-
SETMISS=option | number
SETMISSING= option | number
-
specifies how missing values (either actual or accumulated) are to be interpreted in the accumulated time series for variables
listed in the VAR statement. If the SETMISSING= option is not specified in the VAR statement, missing values are set based
on the SETMISSING= option in the ID statement. See the SETMISSING= option in the ID statement for more details.
-
TRANSFORM=option
-
specifies the time series transformation to be applied to the accumulated time series. You can specify the following transformation
options:
- NONE
-
No transformation is applied. This option is the default.
- LOG
-
Logarithmic transformation
- SQRT
-
Square-root transformation
- LOGISTIC
-
Logistic transformation
- BOXCOX(n )
-
Box-Cox transformation with parameter number where n is between –5 and 5
When the TRANSFORM= option is specified, the time series must be strictly positive.
-
ZEROMISS=option
-
specifies how beginning and ending zero values (either actual or accumulated) are interpreted in the accumulated time series
or ordered sequence for variables listed in the VAR statement. If the ZEROMISS= option is not specified in the VAR statement,
beginning and ending zero values are set based on the ZEROMISS= option of the ID statement. If the ZEROMISS= option is not
specified in the ID statement or the VAR statement, no zero value interpretation is performed. See the ID statement ZEROMISS=
option for more details.
Copyright © SAS Institute Inc. All Rights Reserved.