# easy to use
sarima(rec, 2,0,0) # data, p, d, and q
# redux - minimal output
sarima(rec, p=2, details=FALSE)
# fun for the whole family
dog = sarima(log(AirPassengers), 0,1,1, 0,1,1,12, details=FALSE)
# dog[[1]] has most of the results ...
tsplot(resid(dog[[1]]))
# fixed parameters
x = sarima.sim( ar=c(0,-.9), n=200 ) + 50
sarima(x, p=2, fixed=c(0,NA,NA)) # phi1 fixed, phi2 and mean free
# regression with autocorrelated errors
sarima(log(cpg), p=1, xreg=time(cpg))
# missing data (color, gris-gris, and pch, added for fun)
sarima(ar1miss, p=1, col=4, gg=TRUE, pch=19)
Run the code above in your browser using DataLab