hannan: Estimate ARMA coefficients using the Hannan-Rissanen...

Description Usage Arguments Details Value See Also Examples

View source: R/itsmr.R

Description

Estimate ARMA coefficients using the Hannan-Rissanen algorithm

Usage

1
hannan(x, p, q)

Arguments

x

Data vector (typically residuals from Resid)

p

AR order

q

MA order (q > 0)

Details

The innovations algorithm is used to estimate white noise variance.

Value

Returns an ARMA model consisting of a list with the following components.

phi

Vector of AR coefficients (index number equals coefficient subscript)

theta

Vector of MA coefficients (index number equals coefficient subscript)

sigma2

White noise variance

aicc

Akaike information criterion corrected

se.phi

Standard errors for the AR coefficients

se.theta

Standard errors for the MA coefficients

See Also

arma burg ia yw

Examples

1
2
3
4
xv = c("diff",12)
e = Resid(deaths,xv)
a = hannan(e,1,1)
print(a)

Example output

$phi
[1] 0.6184447

$theta
[1] -0.02812331

$sigma2
[1] 141015.9

$aicc
[1] 888.5466

$se.phi
[1] 0.1707817

$se.theta
[1] 0.2489024

itsmr documentation built on Nov. 17, 2017, 7:27 a.m.