| Libgretl Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
enum AdfCode; int adf_test (int order, const int *list, double ***pZ, DATAINFO *pdinfo, gretlopt opt, PRN *prn); int kpss_test (int order, const int *list, double ***pZ, DATAINFO *pdinfo, gretlopt opt, PRN *prn); int coint (int order, const int *list, double ***pZ, DATAINFO *pdinfo, gretlopt opt, PRN *prn); double df_pvalue_from_plugin (double tau, int n, int niv, int itv, gretlopt opt);
int adf_test (int order,
const int *list,
double ***pZ,
DATAINFO *pdinfo,
gretlopt opt,
PRN *prn);
Carries out and prints the results of the Augmented Dickey-Fuller test for a unit root.
order : |
lag order for the test. |
list : |
list of variables to test. |
pZ : |
pointer to data matrix. |
pdinfo : |
data information struct. |
opt : |
option flag. |
prn : |
gretl printing struct. |
| Returns : | 0 on successful completion, non-zero on error. |
int kpss_test (int order,
const int *list,
double ***pZ,
DATAINFO *pdinfo,
gretlopt opt,
PRN *prn);
Carries out and prints the results of the KPSS test for stationarity.
order : |
window size for Bartlett smoothing. |
list : |
list of variables to test. |
pZ : |
pointer to data matrix. |
pdinfo : |
data information struct. |
opt : |
option flag. |
prn : |
gretl printing struct. |
| Returns : | 0 on successful completion, non-zero on error. |
int coint (int order,
const int *list,
double ***pZ,
DATAINFO *pdinfo,
gretlopt opt,
PRN *prn);
Carries out the Engle-Granger test for cointegration.
order : |
lag order for the test. |
list : |
specifies the variables to use. |
pZ : |
pointer to data matrix. |
pdinfo : |
data information struct. |
opt : |
if OPT_N, do not an include a constant in the
cointegrating regression, if OPT_S, skip
DF tests for individual variables; if OPT_E,
test down from maximum lag order.
|
prn : |
gretl printing struct. |
| Returns : | 0 on successful completion. |
double df_pvalue_from_plugin (double tau,
int n,
int niv,
int itv,
gretlopt opt);
tau : |
|
n : |
|
niv : |
|
itv : |
|
opt : |
|
| Returns : |