Learn R Programming

season (version 0.3.15)

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

peri

periodogram, I(\(\omega\)).

f

frequencies in radians, \(\omega\).

c

frequencies in cycles of time, \(2\pi/\omega\).

amp

amplitude periodogram.

phase

phase periodogram.

Examples

Run this code
# NOT RUN {
data(CVD)
p = peri(CVD$cvd)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab