egcm.defaults {egcm} | R Documentation |
Set and get defaults for Engle-Granger cointegration models
Description
Set and get defaults for Engle-Granger cointegration models
Usage
egcm.set.default.i1test(i1test)
egcm.default.i1test()
egcm.i1tests()
egcm.set.default.urtest(urtest)
egcm.default.urtest()
egcm.urtests()
egcm.set.default.pvalue(p)
egcm.default.pvalue()
Arguments
i1test |
a mnemonic indicating the name of the test that should be used for checking if the input series are integrated. The following tests are supported: |
urtest |
a mnemonic indicating the name of the test that should be used for checking if the residual series contains a unit root. The following tests are supported:
|
p |
the p-value should be used for rejecting the null hypothesis in
the various statistical tests conducted by |
Value
For egcm.default.i1test
, returns the string representing the
currently selected default I(1) test. For egcm.i1tests
,
returns a list of all available I(1) tests.
For egcm.default.urtest
, returns the string represeting the
currently selected unit root test. For egcm.urtests
,
returns a list of all available unit root tests.
For egcm.default.pvalue
, returns the default p-value that
will be used for rejecting the null hypothesis in the various
statistical tests conducted by egcm
.
The setter functions do not return a value.
Note
Changing the default value only affects egcm
objects created
after the change is made.
Author(s)
Matthew Clegg matthewcleggphd@gmail.com
See Also
Examples
# Get and set the current default I(1) test
egcm.default.i1test()
egcm.set.default.i1test("adf")
# Get and set the current default unit root test
egcm.default.urtest()
egcm.set.default.urtest("pp")
# Get and set the current default p-value
egcm.default.pvalue()
egcm.set.default.pvalue(0.01)