楼主: xzq_whu
21065 10

请教 怎么用R做时间序列的平稳性检验 [推广有奖]

11
柯道不尔 发表于 2018-3-22 21:17:02
x<-arima.sim(n=100,model=list(ar=c(1,-0.5)))
acf(x,lag.max = 20) #acf图
plot(x,type="l")
Box.test(xr,lag=6,type = "Ljung-Box",fitdf=0) #LM检验

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-26 05:56