Learn R Programming

FitAR (version 1.94)

sdfplot.ar: Autoregressive Spectral Density Estimation for "ar"

Description

Method for class "ar" for sdfplot.

Usage

"sdfplot"(obj, ...)

Arguments

obj
class "ar" object, output from ar
...
optional arguments

Value

Plot is produced using plot. Matrix with 2 columns containing the frequencies and spectral density is returned invisibly.

See Also

ARSdf, sdfplot, sdfplot.FitAR, sdfplot.ts

Examples

Run this code
#Fit AR(p) using AIC model selection and Burg estimates. Plot spectral density
#estimate
ans<-ar(lynx, lag.max=20)
sdfplot(ans)

Run the code above in your browser using DataLab