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

Description Usage Arguments Value Author(s) See Also Examples

Description

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

Usage

1
2
## S3 method for class 'FitAR'
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.

Author(s)

A.I. McLeod

See Also

sdfplot, FitAR

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
#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")

FitAR documentation built on May 2, 2019, 3:22 a.m.