Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

sdfplot

Autoregressive Spectral Density Estimation


Description

Generic function. Methods are available for "FitAR", "ar", "Arima", "ts" and "numeric".

Usage

sdfplot(obj, ...)

Arguments

obj

input object

...

optional arguments

Value

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

Author(s)

A.I. McLeod

See Also

Examples

#Example 1
#Use AIC to select best subset model to fit to lynx data and
#plot spectral density function
pvec<-SelectModel(SeriesA, ARModel="ARp", lag.max=10, Best=1)
ans<-FitAR(SeriesA, pvec)
sdfplot(ans)
#
#Example 2
#Fit ARMA and plot sdf
ans<-arima(SeriesA, c(1,0,1))
sdfplot(ans)
#
#Example 3
#Fit ARz model using AIC to monthly sunspots and plot spectral density
#Warning: this may take 10 minutes or so.
## Not run: 
pvec<-SelectModel(sunspots, lag.max=200, ARModel="ARz", Criterion="AIC", Best=1)
ans<-FitAR(sunspots, pvec)
sdfplot(ans)

## End(Not run)

FitAR

Subset AR Model Fitting

v1.94
GPL (>= 2)
Authors
A.I. McLeod, Ying Zhang and Changjiang Xu
Initial release
2013-03-15

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.