The PSTR package implements the Logistic Vector Smooth Transition AutoRegression (LVSTAR) modelling.
The modelling procedure consists of three stages: Specification, Estimation and Evaluation. The package offers tools helping the users to conduct model specification tests, to do LVSTAR model estimation, and to do model evaluation.
The heteroskedasticity-consistent tests are implemented in the package. The wild bootstrap tests are also implemented.
Parallel computation (as an option) is implemented in some functions, especially the bootstrap tests. Therefore, the package suits tasks running many cores on super-computation servers.
You can install the package by running
if(!require(devtools)) install.packages("devtools")
devtools::install_github("yukai-yang/LVSTAR")
After installing the package, you need to load (attach better say) it by running the code
library("LVSTAR")
You can first check the information and the current version number by running
version()
#> LVSTAR version 1.0.0 (RED STAR) from GitHub
Then you can take a look at all the available functions and data in the package
ls( grep("LVSTAR", search()) )
#> [1] "NewLVSTAR" "sunspot" "version"
In the package, a data set called "sunspot" is offered to give prompt example. For details of the data set, you can run
?sunspot
You can create a new object of the class PSTR by doing
star = NewLVSTAR(sunspot,freq=1,start=c(1700,1))
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。