Learn R Programming

descomponer (version 1.6)

periodograma: Periodogram

Description

Calculates and displays the spectrum of the time serie

Usage

periodograma(y)

Arguments

y

a vector of the observed time-serie values

Value

frecuencia

Vector of frequencies at which the spectral density is estimated. The units are the reciprocal of cycles per unit time.

omega

Is calculated by pi*frecuencia/(n/2)

periodos

n/frecuencia

densidad

Vector of estimates of the spectral density at frequencies corresponding to frecuencia.

%% ~Describe the value returned %% If it is a LIST, use %% \item{comp1 }{Description of 'comp1'} %% \item{comp2 }{Description of 'comp2'} %% ...

References

Parra, F. (2014), Amplitude time-frequency regression, (http://econometria.wordpress.com/2013/08/21/estimation-of-time-varying-regression-coefficients/)

See Also

gperiodograma

Examples

Run this code
# NOT RUN {
n<-100;x<-seq(0,24*pi,length=n);y<-sin(x)+rnorm(n,sd=.3)
periodograma(y)
# }

Run the code above in your browser using DataLab