Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

AR

Create an Autoregressive P [AR(P)] Process


Description

Sets up the necessary backend for the AR(P) process.

Usage

AR(phi = NULL, sigma2 = 1)

Arguments

phi

A vector with double values for the phi of an AR(P) process (see Note for details).

sigma2

A double value for the variance, sigma^2, of an AR(P) process. (see Note for details).

Value

An S3 object with called ts.model with the following structure:

process.desc

Used in summary: "AR-1","AR-2", ..., "AR-P", "SIGMA2"

theta

phi[[1]], phi[[2]], ..., phi[[p]], sigma^2

plength

Number of Parameters

desc

"AR"

print

String containing simplified model

obj.desc

Depth of Parameters e.g. list(p,1)

starting

Guess starting values? TRUE or FALSE (e.g. specified value)

Note

We consider the following model:

X_t = ∑_{j = 1}^p φ_j X_{t-1} + \varepsilon_t

, where \varepsilon_t is iid from a zero mean normal distribution with variance σ^2.

Author(s)

James Balamuta

Examples

AR(1) # Slower version of AR1()
AR(phi=.32, sigma=1.3) # Slower version of AR1()
AR(2) # Equivalent to ARMA(2,0).

simts

Time Series Analysis Tools

v0.1.1
AGPL-3 | file LICENSE
Authors
Stéphane Guerrier [aut, cre, cph], James Balamuta [aut, cph], Roberto Molinari [aut, cph], Justin Lee [aut], Yuming Zhang [aut], Wenchao Yang [ctb], Nathanael Claussen [ctb], Yunxiang Zhang [ctb], Christian Gunning [cph], Romain Francois [cph], Ross Ihaka [cph], R Core Team [cph]
Initial release
2019-07-21

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.