資源簡介
利用R語言,進行bekk模型回歸
library(mvtnorm)
library(tseries)
library(mgarchBEKK)
data<-read.csv("C:/Users/li/Desktop/1.csv",sep=",",header=T)
....
estimated <- BEKK(simulated)
diagnoseBEKK(estimated)
ab11<-estimated$residuals[[1]]
ab12<-estimated$residuals[[2]]
ab13<-estimated$residuals[[3]]
Box.test(ab11,lag=12,type=c('Ljung-Box'))
Box.test(ab11,lag=24,type=c('Ljung-Box'))
Box.test(ab12,lag=12,type=c('Ljung-Box'))
Box.test(ab12,lag=24,type=c('Ljung-Box'))
代碼片段和文件信息
- 上一篇:數據庫課設畢業設計管理系統
- 下一篇:R語言 關聯規則 apriori算法
評論
共有 條評論