For a given realization, this function plots the data, and calculates and plots the sample autocorrelations, periodogram, and Parzen window spectral estimator in a 2x2 array of plots.
plotts.sample.wge(x, lag.max = 25, trunc = 0, arlimits=FALSE,speclimits=c(0,0),
periodogram=FALSE)
The sample mean of the realization
A vector containing sample autocorrelations from 0, 1, ..., aut.lag
A vector containing the frequencies at which the periodogram and window estimate are calculated
Periodogram (in dB) calculated at the frequecies in freq
Parzen spectral estimate (in dB) calculated at the frequecies in freq
A vector containing the realization
The maximum lag at which to calculate the sample autocorrelations
The truncation point M for the Parzen spectral estimator. If M=0 theN M=2sqrt(n). If M>0 then M is the value entered
Logical variable. TRUE plots 95 percent limit lines on sample autocorrelation plots
Logical variable. TRUE plots periodogram, default=FALSE
User supplied limits for Parzen spectral density and periodogram, default=function decides limits
Wayne Woodward
"Applied Time Series Analysis with R, 2nd edition" by Woodward, Gray, and Elliott
data(wages)
plotts.sample.wge(wages,trunc=0)
Run the code above in your browser using DataLab