• 面板平滑转换回归(PSTR)分析案例实现


    建模过程包括三个阶段:表述,估计和评估,本文帮助用户进行模型表述、估计,进行PSTR模型评估

    最近我们被客户要求撰写关于PSTR的研究报告,包括一些图形和统计输出。

    在程序包中实现了集群依赖性和异方差性一致性检验。

    还实现了wild bootstrap和cluster wild bootstrap检验。

    并行计算(作为选项)在某些函数中实现,尤其是bootstrap检验。因此,该程序包适合在超级计算服务器上运行多个核心的任务。

      

    数据

     “Hansen99”数据集来提供示例。 

    初始化

    可以通过执行创建PSTR类的新对象

    1. #> Summary of the model:
    2. #> ---------------------------------------------------------------------------
    3. #> time horizon sample size = 14, number of individuals = 560
    4. #> ---------------------------------------------------------------------------
    5. #> Dependent variable: inva
    6. #> ---------------------------------------------------------------------------
    7. #> Explanatory variables in the linear part:
    8. #> 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
    9. #> ---------------------------------------------------------------------------
    10. #> Explanatory variables in the non-linear part:
    11. #> vala debta cfa sales
    12. #> ---------------------------------------------------------------------------
    13. #> Potential transition variable(s) to be tested:
    14. #> vala
    15. #> ###########################################################################
    16. #> ***************************************************************************
    17. #> Results of the linearity (homogeneity) tests:
    18. #> ***************************************************************************
    19. #> Sequence of homogeneity tests for selecting number of switches 'm':
    20. #> ***************************************************************************
    21. #> ###########################################################################

    因变量是“inva”,第4列到第20列的数据中的变量是线性部分的解释变量,非线性部分中的解释变量是“indep_k”中的四个,潜在的转换变量是“v

  • 相关阅读:
    HarmonyOS数据管理与应用数据持久化(一)
    CSP-J2022普及组题解T4:上升点列
    一个Linux自动备份脚本的示例
    Golang入门笔记(10)—— 闭包 closure
    Win11快速助手在哪里?Win11打开快速助手的方法
    mysql语句locate与substring联合使用方法
    Python进阶复习-自带库
    3D Gaussian Splatting for Real-Time Radiance Field Rendering(慢慢啃,还是挺复杂的)
    Windows下实用工具汇总(更新……)
    nodejs学习week01
  • 原文地址:https://blog.csdn.net/tecdat/article/details/128044965