ARIMA
ARIMA
ARIMA
> difflnstock=diff(lnstock,2)
> difflnstock=diff(lnstock,0)
Error in diff.default(lnstock, 0) :
'lag' and 'differences' must be integers >= 1
> difflnstock=diff(lnstock,1)
> adf.test(lnstock)
data: lnstock
Dickey-Fuller = -1.8042, Lag order = 2, p-value = 0.647
alternative hypothesis: stationary
> adf.test(difflnstock)
Coefficients:
drift
-0.0455
s.e. 0.0126
Coefficients:
drift
-0.0455
s.e. 0.0126
data: fitlnstock$residuals
X-squared = 1.1, df = 2, p-value = 0.577
Box-Ljung test
data: fitlnstock$residuals
X-squared = 2.0561, df = 4, p-value = 0.7254
Box-Ljung test
data: fitlnstock$residuals
X-squared = 4.6182, df = 6, p-value = 0.5936
>