5.4 Plot the GNP series, gnp, and then test for a unit root against the alternative that the process is explosive. State your conclusion.
Hint: [in R]
library(astsa)
library(tseries)
head(gnp)
print(gnp)
install.packages("astsa")
install.packages("tseries")
library(astsa)
library(tseries)
head(gnp)
plot(gnp)
adf.test(gnp, alternative = "explosive",
k =
trunc((length(gnp)-1)^(1/3)))
since p-value = 0.01 < alpah (0.05)
we reject the null hypothesis
Get Answers For Free
Most questions answered within 1 hours.