用adf.test()函数,没有指定lag时返回:
Augmented Dickey-Fuller Test
data: a$cpi
Dickey-Fuller = -3.8942, Lag order = 4, p-value = 0.01857
alternative hypothesis: stationary
是平稳的,但是指定lag=6时,返回:
Augmented Dickey-Fuller Test
data: a$cpi
Dickey-Fuller = -3.0967, Lag order = 6, p-value = 0.1263
alternative hypothesis: stationary
应该是不平稳的
那要选取哪个lag?到底平稳还是不平稳?


雷达卡


京公网安备 11010802022788号







