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

Mdl = regARIMA('AR',{0.2,0.1},'ARLags',[1,4], ...
    'Intercept',0,'Beta',[-2;0.5],'Variance',1)

% There are no NaN values in any Mdl properties, 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 2017 The MathWorks, Inc.