SPECTRA
Spectral analysis: periodogram, smoothed spectral density and cross-spectral statistics.
Syntax
Section titled “Syntax”SPECTRA [VARIABLES=]varlist [/CENTER] [/WINDOW=TUKEY|HAMMING|DANIELL|BARTLETT|PARZEN|NONE (span)] [/CROSS] [/PRINT=TABLE NONE] [/PLOT=P S CS QS PH A G K [BY FREQ|PERIOD] | NONE] [/OUTFILE DATASET=name].Synopsis
Section titled “Synopsis”| Kind | Procedure (reads data, produces output) |
| Body | main /SUBCOMMAND[=] … |
| Changes data | no |
| Subcommands | /CENTER, /CROSS, /OUTFILE, /PLOT, /PRINT, /VARIABLES, /WINDOW |
| Menu | Analyze ▸ Forecasting |
| Slot: Variables | 1+ variable(s); levels: scale; types: numeric |
Specifications
Section titled “Specifications”- WINDOW: smoothing window and its odd span (default TUKEY(5) when /WINDOW is given without a name)
- CROSS: cospectrum, quadrature spectrum, cross amplitude, squared coherency, phase and gain for every pair of variables
- OUTFILE: writes every frequency’s estimates to a new dataset
Examples
Section titled “Examples”SPECTRA VARIABLES=sales /CENTER /WINDOW=TUKEY(5) /PLOT=P S BY PERIOD.SPECTRA x y /CENTER /WINDOW=DANIELL(7) /CROSS /PLOT=K PH.- Pₖ = (n/2)(aₖ² + bₖ²) at the Fourier frequencies k/n; ordinates are not divided by 4π.
- Tables list at most 200 frequencies; /OUTFILE keeps all of them.
Related
Section titled “Related”Generated from OrcStat’s command registry and reference. To suggest a change, open an issue.