Description Usage Arguments Details Value Author(s) References See Also Examples
Returns the preferred hypothesis when testing for partial autoregression
1 |
AT |
An object of class |
Based upon the critical value alpha
used in the call to test.par
,
and based upon the statistics computed by test.par
, selects a preferred
explanatory hypothesis for the data and returns a string representing the chosen
hypothesis.
One of the following strings:
"RW" |
The preferred hypothesis is a pure random walk |
"AR1" |
The preferred hypothesis is a pure AR(1) series |
"PAR" |
The preferred hypothesis is a partially autoregressive series |
"RRW" |
The preferred hypothesis is a random walk with t-distributed innovations |
"RAR1" |
The preferred hypothesis is a pure AR(1) series with t-distributed innovations |
"RPAR" |
The preferred hypothesis is a partially autoregressive model with t-distributed innovations |
Matthew Clegg matthewcleggphd@gmail.com
Matthew Clegg (2015): Modeling Time Series with Both Permanent and Transient Components using the Partially Autoregressive Model. Available at SSRN: http://ssrn.com/abstract=2556957.
1 2 3 4 5 6 7 8 | set.seed(1)
which.hypothesis.partest(test.par(rpar(1000, 0, 1, 0))) # -> "AR1"
which.hypothesis.partest(test.par(rpar(1000, 0, 0, 1))) # -> "RW"
which.hypothesis.partest(test.par(rpar(1000, 0, 1, 1))) # -> "PAR"
which.hypothesis.partest(test.par(rpar(1000, 0, 1, 0), robust=TRUE)) # -> "RAR1"
which.hypothesis.partest(test.par(rpar(1000, 0, 0, 1), robust=TRUE)) # -> "RRW"
which.hypothesis.partest(test.par(rpar(1000, 0.5, 1, 1), robust=TRUE)) # -> "RPAR"
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.