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

Mdl = regARIMA('Intercept',0,'Beta',[0.5; -3; 1.2],...
    'MA',{0.5, -0.1},'Variance',1)

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