add.um | R Documentation |
add.um
creates a univariate (ARIMA) model from the addition or
substraction of two univariate (arima) models.
add.um(um1, um2, add = TRUE, tol = 1e-05)
um1 , um2 |
Two "um" S3 objects. |
add |
logical. If FALSE, the second model is substracted from the first one. |
tol |
tolerance to check if a value is null. |
A "um" S3 object.
The + and - operators can also be used to add or substract ARIMA models.
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.