Dear all,
I have a time series data set and I am testing for cointegration using bounds testing approach.
So my code is this
parmby "xi:ardl TC TRI PC PRI, maxlag(2 2 2 2) nocons ec1 regstore(res)", label norestore
that produced
ARDL(2,1,1,0) regression
Sample: 1/6/2010 thru 12/29/2023, but with gaps Number of obs = 2,185
R-squared = 0.9994
Adj R-squared = 0.9994
Log likelihood = 12727.74 Root MSE = 0.0007
------------------------------------------------------------------------------
D.TC | Coefficient Std. err. t P>|t| [95% conf. interval]
-------------+----------------------------------------------------------------
ADJ |
TC |
L1. | -.1818093 .0078682 -23.11 0.000 -.1972392 -.1663794
-------------+----------------------------------------------------------------
LR |
TRI |
L1. | 1.69922 .0079424 213.94 0.000 1.683644 1.714795
|
PC |
L1. | 1.080394 .0010966 985.22 0.000 1.078243 1.082544
|
PRI |
L1. | -1.604827 .0082859 -193.68 0.000 -1.621076 -1.588578
-------------+----------------------------------------------------------------
SR |
TC |
LD. | .279423 .0054767 51.02 0.000 .2686828 .2901632
|
TRI |
D1. | .9995084 .000688 1452.86 0.000 .9981593 1.000858
|
PC |
D1. | .2896442 .0125519 23.08 0.000 .2650292 .3142591
|
PRI |
D1. | -.2917724 .0125884 -23.18 0.000 -.3164589 -.2670859
------------------------------------------------------------------------------
Then the problems start.
The following commands do not run
sencode parm, gene(parmid)
command sencode is unrecognized
eclplot estimate min95 max95 parmid
variable parmid not found
Then I condcut the bounds F-test, which is OK
estat ectest
Pesaran, Shin, and Smith (2001) bounds test
H0: no level relationship F = 134.701
Case 1 t = -23.107
Finite sample (3 variables, 2185 observations, 3 short-run coefficients)
Kripfganz and Schneider (2020) critical values and approximate p-values
| 10% | 5% | 1% | p-value
| I(0) I(1) | I(0) I(1) | I(0) I(1) | I(0) I(1)
---+------------------+------------------+------------------+-----------------
F | 2.001 3.076 | 2.434 3.605 | 3.393 4.740 | 0.000 0.000
t | -1.617 -2.978 | -1.940 -3.310 | -2.564 -3.931 | 0.000 0.000
do not reject H0 if
either F or t are closer to zero than critical values for I(0) variables
(if either p-value > desired level for I(0) variables)
reject H0 if
both F and t are more extreme than critical values for I(1) variables
(if both p-values < desired level for I(1) variables)
decision: no rejection (.a), inconclusive (.), or rejection (.r) at levels:
| 10% 5% 1%
-------------+---------------------------------
decision | .r .r .r
Finally, I want to conduct some diagnostics tests:
estimates restore res
But then the following commands do not run
. estat bgodfrey, lags(1/4) small
time variable not set, use tsset varname ...
estat imtest, white
time variable not set, use tsset varname ...
. predict res, residuals
variable TC not found
r(111);
. sktest res
variable res not found
r(111);
pnorm res
variable res not found
r(111);
.
. qnorm res
variable res not found
Any help is greatly appreciated!
I have a time series data set and I am testing for cointegration using bounds testing approach.
So my code is this
parmby "xi:ardl TC TRI PC PRI, maxlag(2 2 2 2) nocons ec1 regstore(res)", label norestore
that produced
ARDL(2,1,1,0) regression
Sample: 1/6/2010 thru 12/29/2023, but with gaps Number of obs = 2,185
R-squared = 0.9994
Adj R-squared = 0.9994
Log likelihood = 12727.74 Root MSE = 0.0007
------------------------------------------------------------------------------
D.TC | Coefficient Std. err. t P>|t| [95% conf. interval]
-------------+----------------------------------------------------------------
ADJ |
TC |
L1. | -.1818093 .0078682 -23.11 0.000 -.1972392 -.1663794
-------------+----------------------------------------------------------------
LR |
TRI |
L1. | 1.69922 .0079424 213.94 0.000 1.683644 1.714795
|
PC |
L1. | 1.080394 .0010966 985.22 0.000 1.078243 1.082544
|
PRI |
L1. | -1.604827 .0082859 -193.68 0.000 -1.621076 -1.588578
-------------+----------------------------------------------------------------
SR |
TC |
LD. | .279423 .0054767 51.02 0.000 .2686828 .2901632
|
TRI |
D1. | .9995084 .000688 1452.86 0.000 .9981593 1.000858
|
PC |
D1. | .2896442 .0125519 23.08 0.000 .2650292 .3142591
|
PRI |
D1. | -.2917724 .0125884 -23.18 0.000 -.3164589 -.2670859
------------------------------------------------------------------------------
Then the problems start.
The following commands do not run
sencode parm, gene(parmid)
command sencode is unrecognized
eclplot estimate min95 max95 parmid
variable parmid not found
Then I condcut the bounds F-test, which is OK
estat ectest
Pesaran, Shin, and Smith (2001) bounds test
H0: no level relationship F = 134.701
Case 1 t = -23.107
Finite sample (3 variables, 2185 observations, 3 short-run coefficients)
Kripfganz and Schneider (2020) critical values and approximate p-values
| 10% | 5% | 1% | p-value
| I(0) I(1) | I(0) I(1) | I(0) I(1) | I(0) I(1)
---+------------------+------------------+------------------+-----------------
F | 2.001 3.076 | 2.434 3.605 | 3.393 4.740 | 0.000 0.000
t | -1.617 -2.978 | -1.940 -3.310 | -2.564 -3.931 | 0.000 0.000
do not reject H0 if
either F or t are closer to zero than critical values for I(0) variables
(if either p-value > desired level for I(0) variables)
reject H0 if
both F and t are more extreme than critical values for I(1) variables
(if both p-values < desired level for I(1) variables)
decision: no rejection (.a), inconclusive (.), or rejection (.r) at levels:
| 10% 5% 1%
-------------+---------------------------------
decision | .r .r .r
Finally, I want to conduct some diagnostics tests:
estimates restore res
But then the following commands do not run
. estat bgodfrey, lags(1/4) small
time variable not set, use tsset varname ...
estat imtest, white
time variable not set, use tsset varname ...
. predict res, residuals
variable TC not found
r(111);
. sktest res
variable res not found
r(111);
pnorm res
variable res not found
r(111);
.
. qnorm res
variable res not found
Any help is greatly appreciated!
Comment