The TIMESERIES Procedure |
SPECTRA Statement |
The following univariate frequency domain statistics are available:
frequency in radians from 0 to
period or wavelength
cosine transform
sine transform
periodogram
spectral density estimates
If none of the frequency domain statistics are specified, the default is as follows:
spectra period p;
The following options can be specified in the SPECTRA statement following the slash (/):
subtracts the series mean before performing the Fourier decomposition. This sets the first periodogram ordinate to 0 rather than to times the squared mean. This option is commonly used when the periodograms are to be plotted to prevent a large first periodogram ordinate from distorting the scale of the plot.
specifies the width of a window drawn around the spectral density estimate in a spectral density versus frequency plot. Based on approximations proposed by Brockwell and Davis (1991), periodogram ordinates fall within this window with a confidence level of . The value must be between 0 and 1; the default is 0.5.
specifies the smoothing function used to calculate a spectral density estimate as the moving average of periodogram ordinates. The kernel function is an alternative way to using the WEIGHTS option as a smoothing function. The available kernel values are:
Parzen kernel
Bartlett kernel
Tukey-Hanning kernel
truncated kernel
quadratic spectral kernel
The DOMAIN= option specifies how the smoothing function is interpreted. The available domain values are:
smooths the periodogram ordinates.
applies the kernel as a filter to the time series. autocovariance function
By default DOMAIN=FREQUENCY, and smoothing is applied in the same manner as weights are applied when the WEIGHTS= option is used. Each of the kernel functions can be further parameterized by a bandwidth value by using the C= and EXPON= options. A summary of the default values of the bandwidth parameters, and , that are associated with the kernel functions and the bandwidth values, , for a series with 100 periodogram ordinates is listed in Table 29.2.
Kernel |
|
|
|
Bartlett |
|
|
2.32 |
Parzen |
|
|
2.51 |
Quadratic |
|
|
1.26 |
Tukey-Hanning |
|
|
1.67 |
Truncated |
|
|
0.63 |
For example, to apply the truncated kernel by using default bandwidth parameters in the frequency domain, the following SPECTRA statement could be used:
spectra / truncat;
Details of the kernel function bandwidth parameterization and the DOMAIN= option are provided in the section Using Kernel Specifications.
specifies the relative weights used in computing a spectral density estimate as the moving average smoothing of periodogram ordinates. If neither a WEIGHTS option nor a kernel function is specified, the spectral density estimate is identical to the unmodified periodogram. The following SPECTRA statement uses the WEIGHTS option to specify equal weighting for each of the three adjacent periodogram ordinates centered on each spectral density estimate:
spectra / weights 1 1 1;
Further description of how the weights are applied is provided in the section Using Specification of Weight Constants.
Copyright © SAS Institute, Inc. All Rights Reserved.