The %DFPVALUE macro computes the significance of the Dickey-Fuller test. The %DFPVALUE macro evaluates the p-value for the Dickey-Fuller test statistic for the test of H: "The time series has a unit root" versus H: "The time series is stationary" using tables published by Dickey (1976); Dickey, Hasza, and Fuller (1984).
The %DFPVALUE macro can compute p-values for tests of a simple unit root with lag 1 or for seasonal unit roots at lags 2, 4, or 12. The %DFPVALUE macro takes into account whether an intercept or deterministic time trend is assumed for the series.
The %DFPVALUE macro is used by the %DFTEST macro described later in this chapter.
Note that the %DFPVALUE macro has been superseded by the PROBDF function described later in this chapter. It remains for compatibility with past releases of SAS/ETS.
The %DFPVALUE macro has the following form:
%DFPVALUE ( tau, nobs < , options > );
The first argument, tau, specifies the value of the Dickey-Fuller test statistic.
The second argument, nobs, specifies the number of observations on which the test statistic is based.
The first two arguments are required. The following options can be used with the %DFPVALUE macro. Options must follow the required arguments and are separated by commas.
The computed p-value is returned in the macro variable &DFPVALUE
. If the p-value is less than 0.01 or larger than 0.99, the macro variable &DFPVALUE
is set to 0.01 or 0.99, respectively.
The minimum number of observations required by the %DFPVALUE macro depends on the value of the DLAG= option. The minimum observations are as follows:
DLAG= |
Minimum Observations |
1 |
9 |
2 |
6 |
4 |
4 |
12 |
12 |