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

MA

Create an Moving Average Q [MA(Q)] Process


Description

Sets up the necessary backend for the MA(Q) process.

Usage

MA(theta = NULL, sigma2 = 1)

Arguments

theta

A double value for the parameter theta (see Note for details).

sigma2

A double value for the variance parameter sigma^2 (see Note for details).

Value

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

process.desc

Used in summary: "MA-1","MA-2", ..., "MA-Q", "SIGMA2"

theta

theta[[1]], theta[[2]], ..., theta[[q]], sigma^2

plength

Number of parameters

desc

"MA"

print

String containing simplified model

obj.desc

Depth of parameters e.g. list(q,1)

starting

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

Note

We consider the following model:

X_t = ∑_{j = 1}^q θ_j \varepsilon_{t-1} + \varepsilon_t

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

Author(s)

James Balamuta

Examples

MA(1) # One theta
MA(2) # Two thetas!

MA(theta=.32, sigma=1.3) # 1 theta with a specific value.
MA(theta=c(.3,.5), sigma=.3) # 2 thetas with specific values.

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.