ASM Assignment Codes For Apendix
ASM Assignment Codes For Apendix
ACF$"acf"[2:16]
[1] 0.747010464 0.510874178 0.238122449 0.005676017 -0.187818571
[6] -0.165416131 -0.167339752 -0.139557065 -0.155305290 -0.165771437
Y <- ts(Y)
Z <- ts(diff(Y, lag=1))
Z2 <- ts(diff (Z, lag=1))
ts.plot(Y,gpars=list(main="Original Values", xlab="Year",
ylab="Export Volume Index", lty=1))
acf(Y)
pacf(Y)
acf(Z, main="Z")
pacf(Z, main="Z")
Box.test(Z, lag = 5)
Output
Box-Pierce test
data: Z
X-squared = 2.9786, df = 5, p-value = 0.7033
acf(Z2, main="Z2")
pacf(Z2, main="Z2")
Box.test(Z2, lag = 5)
Box-Pierce test
data: Z2
X-squared = 4.5467, df = 5, p-value = 0.4737
Box.test(Z2, lag = 5,type="Ljung")
Box-Ljung test
data: Z2
X-squared = 6.7073, df = 5, p-value = 0.2433