For a given ARMA model, this function plots a realization, the true autocorrelations, and the true spectral density. This plot is typical of many plots in Applied Time Series Analysis by Woodward, Gray, and Elliott. For example, see Figure 1.21 and Figure 3.23.
plotts.true.wge(n=100, phi=0, theta=0, lag.max=25, mu=0,vara = 1,sn=0,plot.data=TRUE)
Realization of length n that is generated from the ARMA model
True autocorrelations from the ARMA model for lags 0 to lag.max
True autocovariances from the ARMA model for lags 0 to lag.max
Spectral density (in dB) for the ARMA model calculated at frequencies f=0, .002, .004, ...., .5
Length of time series realization to be generated. Default is 100
Vector containing AR parameters
Vector containing MA parameters
Maximum lag for calculating and plotting autocorrelations
True mean
White noise variance: default=1
determines the seed used in the simulation of plotted realization. sn=0 produces new/random realization each time. sn=positive integer produces same realization each time
Logical variable: If TRUE a simulated realization is plotted
Wayne Woodward
"Applied Time Series Analysis with R, 2nd edition" by Woodward, Gray, and Elliott
plotts.true.wge(n=100, phi=c(1.6,-.9), theta=.8, lag.max=25, vara = 1)
Run the code above in your browser using DataLab