Simulates a time series from a multi-seasonal ARIMA model with specified parameters. This function provides a direct interface for simulation without requiring a fitted model object.
Arguments
- nsim
Length of the simulated series (required).
- order
A numeric vector of length 3 specifying the non-seasonal part of the ARIMA model: the AR order (p), the degree of differencing (d), and the MA order (q). Default is
c(0, 0, 0).- seasonal
A list of numeric vectors, each of length 3, specifying the seasonal components. Each vector gives the seasonal AR order (P), the seasonal differencing order (D), and the seasonal MA order (Q) of one component. Use
list()for a model without seasonal components. Default islist().- seasonal.period
A numeric vector of seasonal periods, one for each element of
seasonal. Periods can be given in any order but must be distinct. Default isNULL.- ar
Numeric vector of AR coefficients, non-seasonal first and then one block per seasonal component. Its length must match the total AR order implied by
orderandseasonal. Default isNULL.- ma
Numeric vector of MA coefficients, ordered as
ar. Its length must match the total MA order implied byorderandseasonal. Default isNULL.- sigma2
Innovation variance. Default is 1.
- burn
Number of burn-in observations to discard. If
NULL, it is set tomax(100, 2 * kk), wherekkis the largest lag in the model. Default isNULL.- intercept
Constant term of the model equation, that is \(\mu\) in \(y_t = \mu + \sum \phi_i y_{t-i} + \sum \theta_j e_{t-j} + e_t\). This is the intercept, not the mean of the process: for a stationary model the mean is
intercept / prod(1 - ar). Default is 0.