|
Chapter Contents |
Previous |
Next |
| Language Reference |
computes the log likelihood and residuals for an ARMA model
The inputs to the ARMALIK subroutine are as follows:
The ARMALIK subroutine returns the following values:
The ARMALIK subroutine computes the concentrated log likelihood function for an ARMA model. The unconditional sum of squares is readily available, as are the one-step-ahead prediction residuals. Factors that can be used to generate confidence limits associated with prediction from a finite past sample are also returned.
The notational conventions for the ARMALIK subroutine
are the same as those used by the ARMACOV subroutine.
See the description of the ARMACOV call for the model employed.
In addition, the condition
for |z|<1 should
be satisfied to guard against floating-point overflow.
If the column vector x contains n values
of a time series and the variance matrix is denoted
, where
is the variance
of the innovations, then, up to additive constants, the log
likelihood, concentrated with respect to
, is

proc iml;
phi={ 1 -1 0.25} ;
theta={ 1 0.5} ;
x={ 1 2 3 4 5} ;
call armalik(lnl,resid,std,x,phi,theta);
print lnl resid std;
The printed output is
LNL RESID STD
-0.822608 0.4057513 2.4645637
0.8721154 0.9198158 1.2330147
2.3293833 0.8417343 1.0419028
1.0854175 1.0098042
1.2096421 1.0024125
|
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.