Learn R Programming

gmwmx2 (version 0.0.5)

+.time_series_model: Add to a time_series_model object

Description

Combines time_series_model and/or sum_model into a sum_model.

Usage

# S3 method for time_series_model
+(e1, e2)

Value

A sum_model.

Arguments

e1

Left operand.

e2

Right operand.

Examples

Run this code
m1 <- wn(sigma2 = 1)
m2 <- ar1(phi = 0.8, sigma2 = 0.5)
model <- m1 + m2
model

Run the code above in your browser using DataLab