全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 winbugs及其他软件专版
3603 1
2017-11-24
最近在学计量经济学,课本上说可以用R语言进行广义方差检验,代码如下:library(forecast);library(parallel);library(portes);par(mfrow=c(1,2))plot(gvtest(e3,1:60)[,4],main="Generalized variance tests",ylab="p-value",xlab="Lag",pch=16,ylim=c(0,1))
可是R运行时,Error in gvtest(e3, 1:60) : could not find function "gvtest"
谢谢!

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2018-11-11 15:50:40
大家好,因portes包进行了更新,广义方差混成检验的函数gvtest改为了MahdiMcLeod 函数。函数名字是2012年
该改进方法的两位作者的名字Mahdi and McLeod 的组合形式 。 关于该检验方法,有兴趣的读者可以参考以下文字
查阅相关资料。感谢大家对本书的支持,我们将在下一版中进行更新。

the generalized variance portmanteau test of MahdiMcLeod for univariate time series
was derived by Pena and Rodriguez (2002) based on the gamma distribution. Lin and McLeod
(2006) proposed the Monte-Carlo version of this test and Mahdi and McLeod (2012) extended
both methods to the multivariate case. Simulation results suggest that the Monte-Carlo version of
MahdiMcLeod statistic is more accurate and powerful than its competitors proposed by Box and
Pierce (1970), Ljung and Box (1978), and Pena and Rodriguez (2002, 2006) in the univariate time
series as well as Hosking (1980) and Li and McLeod (1981) in the multivariate time series.
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群