|
Chapter Contents |
Previous |
Next |
| The SPECTRA Procedure |
Any number of weighting constants can be specified.
The constants should be positive and symmetric about the middle weight.
The middle constant, (or the constant to the right of the
middle if an even number of weight constants are specified),
is the relative weight of the current periodogram ordinate.
The constant immediately following the middle one is the
relative weight of the next periodogram ordinate, and so on.
The actual weights used in the smoothing process are the
weights specified in the WEIGHTS statement scaled so that they
sum to
.
The moving average reflects at each end of the periodogram. The first periodogram ordinate is not used; the second periodogram ordinate is used in its place.
For example, a simple triangular weighting can be specified using the following WEIGHTS statement:
weights 1 2 3 2 1;
You can specify five different kernels in the WEIGHTS statement. The syntax for the statement is
To specify the bandwidth explicitly, set c = to the desired bandwidth and e = 0.
For example, a Parzen kernel can be specified using the following WEIGHTS statement:
weights parzen 0.5 0;
For details, see the "Kernels" section on this page, later in this chapter.
|
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.