Learn R Programming

season (version 0.2-6)

peri: Periodogram

Description

Estimated periodogram using the fast Fourier transform (fft).

Usage

peri(data,adjmean=TRUE,plot=TRUE)

Arguments

data
a data frame.
adjmean
subtract the mean from the series before calculating the periodogram (default=TRUE).
plot
plot the estimated periodogram (default=TRUE).

Value

  • periperiodogram, I($\omega$).
  • ffrequencies in radians, $\omega$.
  • cfrequencies in cycles of time, $2\pi/\omega$.
  • ampamplitude periodogram.
  • phasephase periodogram.

Examples

Run this code
data(CVD)
peri(CVD$cvd)

Run the code above in your browser using DataLab