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

Create an object of the S3 class PSTR for later usage. This function should be run prior to the other functions in the package. It will return an object which you will use as an input for the other functions. It builds up the basic settings for the Panel Smooth Transition Regression (PSTR) Modelling.

1 |

`data` |
a tibble of data. The number of rows of |

`dep` |
column number or name of the dependent variable. Note that this must be specified. |

`indep` |
a vector of column numbers of names of the independent variables. Note that this must be specified. |

`indep_k` |
a vector of column numbers of names of the independent variables in the nonlinear part. If |

`tvars` |
a vector of column numbers or names of the potential transition variables to be tested. |

`im` |
maximal number of switches in the transition function used in the linearity evaluation tests, by default |

`iT` |
sample size. |

Potential transition variables in `tvars`

will be tested one by one in, for example, `LinTest`

function.

There is no need to specify the number of individuals, as it will be obtained automatically inside the function given the number of rows and the sample size `iT`

.

`NA`

s in `data`

are removed automatically inside the function.

An object of the class PSTR for later usage.

The object is a list containing the following components:

`iT` |
the time length of the panel |

`iN` |
the number of individuals |

`vY` |
the vector of the dependent variable |

`mX` |
the matrix of the explanatory variables in the linear part |

`mK` |
the matrix of the explanatory variables in the nonlinear part |

`mQ` |
the matrix of the potential transition variables |

`im` |
the maximal number of switches used in the linearity test |

Yukai Yang, [email protected]

1 2 3 4 5 6 |

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.