%% Known Parameter Values for a Regression Model with ARIMA Errors
% This example shows how to specify values for all parameters of a regression model with ARIMA errors.
% Specify the regression model with ARIMA(3,1,2) errors:
% \begin{array}{c}{y_t} = {X_t}\left[ \begin{array}{l}2.5\\ - 0.6\end{array} \right] + {u_t}\\\left( {1 - 0.7L + 0.3{L^2} - 0.1{L^3}} \right)\left( {1 - L} \right){u_t} = \left( {1 + 0.5L + 0.2{L^2}} \right){\varepsilon _t},\end{array}
% where \varepsilon_t is Gaussian with unit variance.

Mdl = regARIMA('Intercept',0,'Beta',[2.5; -0.6],...
    'AR',{0.7, -0.3, 0.1},'MA',{0.5, 0.2},...
    'Variance',1,'D',1)

% The parameters in Mdl do not contain NaN values, and therefore there is no need to estimate it. However, you can simulate or forecast responses by passing Mdl to simulate or forecast.
% Copyright 2015 The MathWorks, Inc.