powered by
add_um creates a univariate (ARIMA) model from the addition or substraction of two univariate (arima) models.
add_um
add_um(um1, um2, add = TRUE, tol = 1e-05)
A "um" S3 object.
Two "um" S3 objects.
logical. If FALSE, the second model is substracted from the first one.
tolerance to check if a value is null.
um1 <- um(i = "(1 - B)", ma = "(1 - 0.8B)") um2 <- um(i = "(1 - B12)", ma = "(1 - 0.8B^12)") um3 <- add_um(um1, um2) um4 <- um3 - um2
Run the code above in your browser using DataLab