Learn R Programming

uotm (version 0.1.6)

arma.sim: Generate Random Time Series Sequence.

Description

This function is to generate a time series sequence.

Usage

arma.sim(ars, mas, nobs, c = 0, sigma = 1, seed = NA)

Value

The arma.sim method returns an object of class “Time Series”.

Arguments

ars

AR part.

mas

MA part.

nobs

Length of time series sequence.

c

Constant.

sigma

The standrad error.

seed

Set seed.

Examples

Run this code
ts <- arma.sim(ars = c(-0.9, -1.4, -0.7, -0.6), mas = c(0.5, -0.4), nobs = 100)

Run the code above in your browser using DataLab