Learn R Programming

tfarima (version 0.4.1)

autocorr.ucarima: Theoretical simple/partial autocorrelations of an ARMA model

Description

autocorr computes the simple/partial autocorrelations of an ARMA model.

Usage

# S3 method for ucarima
autocorr(x, ...)

autocorr(x, ...)

# S3 method for um autocorr(x, lag.max = 10, par = FALSE, ...)

Value

A numeric vector.

Arguments

x

an object of class um.

...

additional arguments.

lag.max

maximum lag for autocovariances.

par

logical. If TRUE partial autocorrelations are computed.

Examples

Run this code
ar1 <- um(ar = "1-0.8B")
autocorr(ar1, lag.max = 13)
autocorr(ar1, lag.max = 13, par = TRUE)

Run the code above in your browser using DataLab