Description Usage Arguments Details Value Methods Author(s) References See Also Examples

Select the best threshold for threshold cointegration regression by sum of squared errors

1 2 |

`y` |
dependent or left-side variable for the long-run regression. |

`x` |
independent or right-side variable for the long-run regression. |

`model` |
a choice of two models, either tar or mtar. |

`lag` |
number of lags. |

`th.range` |
the percentage of observations to be excluded from the search. |

`digits` |
number of digits used in rounding outputs. |

The best threshold is determined by fitting the regression for possible threshold values, sorting the results by sum of squared errors (SSE), and selecting the best with the lowest SSE. To have sufficient observations on either side of the threshold value, certain percentage of observations on the top and bottoms are excluded from the search path. This is usually set as 0.15 by the `th.range`

(Chan 1993).

Return a list object of class "ciTarThd" with the following components:

`model` |
model choice |

`lag` |
number of lags |

`th.range` |
the percentage of observations excluded |

`th.final` |
the best threshold value |

`ssef` |
the best (i.e., lowest) value of SSE |

`obs.tot` |
total number of observations in the raw data |

`obs.CI` |
number of observations used in the threshold cointegration regression |

`basic` |
a brief summary of the major outputs |

`path` |
a data frame of the search record (number of regression, threshold value, SSE, AIC, and BIC values). |

Two methods are defined as follows:

`print`

:This shows the

`basic`

component in the returned list object.`plot`

:plotting three graphs in one window; they reveals the relationship between SSE (sum of squared errors), AIC, BIC and the threshold values. The best threshold value is associated with the lowest SSE value.

Changyou Sun ([email protected]u)

Chan, K.S. 1993. Consistency and limiting distribution of the least squares estimator of a threshold autoregressive model. The Annals of Statistics 21(1):520-533.

Enders, W., and C.W.J. Granger. 1998. Unit-root tests and asymmetric adjustment with an example using the term structure of interest rates. Journal of Business & Economic Statistics 16(3):304-311.

1 | ```
# see example at daVich
``` |

```
Loading required package: erer
Loading required package: lmtest
Loading required package: zoo
Attaching package: 'zoo'
The following objects are masked from 'package:base':
as.Date, as.Date.numeric
Loading required package: gWidgets
```

apt documentation built on May 30, 2017, 6:07 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.