单位根检验,同包不同方法下与同方法不同包下的相反结果
发布:huangruiji110 | 分类:期刊库
关于本站
人大经济论坛-经管之家:分享大学、考研、论文、会计、留学、数据、经济学、金融学、管理学、统计学、博弈论、统计年鉴、行业分析包括等相关资源。
经管之家是国内活跃的在线教育咨询平台!
获取电子版《CDA一级教材》
完整电子版已上线CDA网校,累计已有10万+在读~ 教材严格按考试大纲编写,适合CDA考生备考,也适合业务及数据分析岗位的从业者提升自我。
毕业论文
- 开题报告 | 【独家发布】论文 ...
- 开题报告 | 周五双学位论文开 ...
- 开题报告 | 还是找开题报告的 ...
- 开题报告 | 求浙江大学MBA论文 ...
- 开题报告 | 交开题报告
- 开题报告 | 本科毕业论文开题 ...
- 开题报告 | 开题报告、文献检 ...
- 开题报告 | 写开题报告中嘤嘤 ...
TOP热门关键词
对于单位根检验,最常用的方法是ADF检验,另外还有PP检验、KPSS检验,而R中用于单位根检验的包最常见的是{tseries},另外还有个{urca}包,其报告结果更加详细。library(tseries)adf.test(price)##nullhypothesis ...
坛友互助群![]() |
扫码加入各岗位、行业、专业交流群![]() |
而R中用于单位根检验的包最常见的是{tseries},另外还有个{urca}包,其报告结果更加详细。
- library(tseries)
- adf.test(price) ## null hypothesis is that x has a unit root
- pp.test(price) ## null hypothesis is that x has a unit root
- kpss.test(price) ## Null hypothesis is stationarity
- library(urca)
- summary(ur.df(price)) ## null hypothesis is that x has a unit root
- summary(ur.pp(price)) ## null hypothesis is that x has a unit root
- summary(ur.kpss(price)) ## Null hypothesis is stationarity
报告结果如下:
————————————————————————————————————————————————
> library(tseries)
> adf.test(price) ## null hypothesis is that x has a unit root
Augmented Dickey-Fuller Test
data:price
Dickey-Fuller = -3.5781, Lag order = 6, p-value = 0.03575
alternative hypothesis: stationary
> pp.test(price) ## null hypothesis is that x has a unit root
Phillips-Perron Unit Root Test
data:price
Dickey-Fuller Z(alpha) = -18.6334, Truncation lag parameter = 5,
p-value = 0.09041
alternative hypothesis: stationary
> kpss.test(price) ## Null hypothesis is stationarity
KPSS Test for Level Stationarity
data:price
KPSS Level = 3.9207, Truncation lag parameter = 3, p-value = 0.01
警告信息:
In kpss.test(price) : p-value smaller than printed p-value
>
> library(urca)
> summary(ur.df(price)) ## null hypothesis is that x has a unit root
###############################################
# Augmented Dickey-Fuller Test Unit Root Test #
###############################################
Test regression none
Call:
lm(formula = z.diff ~ z.lag.1 - 1 + z.diff.lag)
Residuals:
Min 1Q Median 3Q Max
-1053.53 -68.74 14.88 93.19 792.42
Coefficients:
Estimate Std. Error t value Pr(>|t|)
z.lag.1 -0.003181 0.006969-0.456 0.648
z.diff.lag -0.026130 0.063709-0.410 0.682
Residual standard error: 212.3 on 248 degrees of freedom
Multiple R-squared: 0.001649, Adjusted R-squared: -0.006402
F-statistic: 0.2048 on 2 and 248 DF,p-value: 0.8149
Value of test-statistic is: -0.4564
Critical values for test statistics:
1pct5pct 10pct
tau1 -2.58 -1.95 -1.62
> summary(ur.pp(price)) ## null hypothesis is that x has a unit root
##################################
# Phillips-Perron Unit Root Test #
##################################
Test regression with intercept
Call:
lm(formula = y ~ y.l1)
Residuals:
Min 1QMedian 3Q Max
-984.02-87.12 -9.17 76.04809.96
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 48.76566 24.94151 1.955 0.0517 .
y.l1 0.97519 0.0129375.433 <2e-16 ***
---
Signif. codes:0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
Residual standard error: 210.3 on 249 degrees of freedom
Multiple R-squared: 0.9581, Adjusted R-squared: 0.9579
F-statistic:5690 on 1 and 249 DF,p-value: < 2.2e-16
Value of test-statistic, type: Z-alphais: -8.5727
aux. Z statistics
Z-tau-mu 2.1364
> summary(ur.kpss(price)) ## Null hypothesis is stationarity
#######################
# KPSS Unit Root Test #
#######################
Test is of type: mu with 5 lags.
Value of test-statistic is: 2.6757
Critical value for a significance level of:
10pct5pct 2.5pct1pct
critical values 0.347 0.4630.574 0.739
———————————————————————————————————————————
检验结果报告:
| ADF检验 | PP检验 | KPSS检验 | |
| {tseries} | 平稳 | 非平稳 | 非平稳 |
| {urca} | 非平稳 | 平稳 | 平稳 |
对于这种同包不同方法下的不同检验结果或者不同包相同方法下的不同检验结果,你是怎么处理的?说说你的看法好吗?还是说我分析过程哪里出错了
扫码或添加微信号:坛友素质互助


「经管之家」APP:经管人学习、答疑、交友,就上经管之家!
免流量费下载资料----在经管之家app可以下载论坛上的所有资源,并且不额外收取下载高峰期的论坛币。
涵盖所有经管领域的优秀内容----覆盖经济、管理、金融投资、计量统计、数据分析、国贸、财会等专业的学习宝库,各类资料应有尽有。
来自五湖四海的经管达人----已经有上千万的经管人来到这里,你可以找到任何学科方向、有共同话题的朋友。
经管之家(原人大经济论坛),跨越高校的围墙,带你走进经管知识的新世界。
扫描下方二维码下载并注册APP
免流量费下载资料----在经管之家app可以下载论坛上的所有资源,并且不额外收取下载高峰期的论坛币。
涵盖所有经管领域的优秀内容----覆盖经济、管理、金融投资、计量统计、数据分析、国贸、财会等专业的学习宝库,各类资料应有尽有。
来自五湖四海的经管达人----已经有上千万的经管人来到这里,你可以找到任何学科方向、有共同话题的朋友。
经管之家(原人大经济论坛),跨越高校的围墙,带你走进经管知识的新世界。
扫描下方二维码下载并注册APP
您可能感兴趣的文章
人气文章
1.凡人大经济论坛-经管之家转载的文章,均出自其它媒体或其他官网介绍,目的在于传递更多的信息,并不代表本站赞同其观点和其真实性负责;
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。




