# Generating an stationary arma process
y = arima.sim(100,model = list(ar = 0.3))
epps.test(y)
# Epps tests with random lambda values
y = arima.sim(100,model = list(ar = c(0.3,0.2)))
epps.test(y, lambda = rnorm(2,mean = 1,sd = 0.1))
Run the code above in your browser using DataLab