sdfplot.FitAR {FitAR}R Documentation

Autoregressive Spectral Density Estimation for "FitAR"

Description

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

Usage

## S3 method for class 'FitAR':
sdfplot(obj, ...)

Arguments

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

Value

Plot produced as side-effect. No output.

Author(s)

A.I. McLeod

See Also

sdfplot, FitAR, FitARLS

Examples

#Use AIC to select best subset model to fit to lynx data and
#plot spectral density function
data(SeriesA)
pvec<-SelectModel(SeriesA, SubsetModel="p", lag.max=10, Best=1)
ans<-FitAR(SeriesA, pvec)
sdfplot(ans)
#
#plot sdf and put your own title
z<-c(SeriesA)
pvec<-SelectModel(z, SubsetModel="p", lag.max=10, Best=1)
ans<-FitAR(z, pvec)
sdfplot(ans)
title(main="Example SDF")

[Package FitAR version 1.0 Index]