建模过程包括三个阶段:规范,估计和评估。该软件包提供的工具可帮助用户进行模型规范测试,进行PSTR模型评估以及进行模型评估。
在程序包中实现了集群依赖性和异方差性一致性测试。
还实现了wild bootstrap和cluster wild bootstrap测试。
并行计算(作为选项)在某些函数中实现,尤其是引导测试。因此,该程序包适合在超级计算服务器上运行多个核心的任务。
数据
“Hansen99”的数据集来提供示例。
初始化
您可以通过执行创建PSTR类的新对象
#> Summary of the model:
#> ---------------------------------------------------------------------------
#> time horizon sample size = 14, number of individuals = 560
#> ---------------------------------------------------------------------------
#> Dependent variable: inva
#> ---------------------------------------------------------------------------
#> Explanatory variables in the linear part:
#> dt_75 dt_76 dt_77 dt_78 dt_79 dt_80 dt_81 dt_82 dt_83 dt_84 dt_85 dt_86 dt_87 vala debta cfa sales
#> ---------------------------------------------------------------------------
#> Explanatory variables in the non-linear part:
#> vala debta cfa sales
#> ---------------------------------------------------------------------------
#> Potential transition variable(s) to be tested:
#> vala
#> ###########################################################################
#> ***************************************************************************
#> Results of the linearity (homogeneity) tests:
#> ***************************************************************************
#> Sequence of homogeneity tests for selecting number of switches 'm':
#> ***************************************************************************
#> ###########################################################################
它说使用了数据集“Hansen99”,因变量是“inva”,第4列到第20列的数据中的变量是线性部分的解释变量(尽管你可以写下它们的名称),非线性部分中的解释变量是“indep_k”中的四个,潜在的转换变量是“vala”(Tobin的Q)。