Grocer Function

NAME

cadf - ADF statistic for residuals from a cointegrating regression

CALLING SEQUENCE

[rescadf]=cadf(p,l,namey,arg1,...,argn)

PARAMETERS

Input

Output

DESCRIPTION

Computes augmented Dickey-Fuller statistic for residuals from a cointegrating regression, allowing for deterministic polynomial trends.

EXAMPLE

1) r = cadf(0,6,'illinos','indiana')
2) r = cadf(1,4,illinos,indiana)

Example 1 is taken from function cadf_d. Illinos and indiania are the names of two variables taken from data base jpl.dat and these names will be used for printings. First entry is set to 0, which means that no trend is imposed in the cointegrating regression. Second entry is set to 6, which means that there are 6 lags to the residuals in the second  stage regression. Example 2 imposes a trend in the cointegrating regression, 4 lags on residuals in the second stage  regression and the variables are named 'endogenous' and 'exogenous' respectively when the results are printed.

AUTHOR

Eric Dubois 2002