Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Library: times
See also: fft invfft pgram

Quantlet: spec
Description: estimates and plots the spectral density of a time series

Usage: specd = spec(x {,width {,n}} )
Input:
x vector
width scalar, 0 <= width <= (rows(x)/2)
n integer; If n=1 (Default) the spectral density estimate is returned, otherwise the log spectral density estimate
Output:
specd vector

Example:
library("times")
randomize(0)
x=genarma(0.9,0,normal(100))
y=spec(x)
y[1:5]

Result:
plots the estimated spectral density of a time series and
the periodogram

Contents of _tmp
[1,]   21.845
[2,]   21.249
[3,]   20.079
[4,]   18.803
[5,]   17.186
Example:
library("times")
randomize(0)
dax=read("dax")
y=spec(dax)

Result:
plots the estimated spectral density of the DAX time series
and the periodogram



Author: R. Chen, C. Hafner, W. Haerdle, G. Aydinli, 20010419 license MD*Tech
(C) MD*TECH Method and Data Technologies, 05.02.2006