Learn R Programming

FitAR (version 1.94)

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

Description

Methods function for sdfplot. Autoregressive spectral density function estimation using the result output from FitAR.

Usage

"sdfplot"(obj, ...)

Arguments

obj
object, class"FitAR"
...
optional arguments

Value

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

See Also

sdfplot, FitAR

Examples

Run this code
#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)
#
#plot sdf and put your own title
z<-c(SeriesA)
pvec<-SelectModel(z, ARModel="ARp", lag.max=10, Best=1)
ans<-FitAR(z, pvec)
sdfplot(ans)
title(main="Example SDF")

Run the code above in your browser using DataLab