Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#Fitting the model
#Linear model
autoplot(tsdata) + geom_smooth(method="lm")+ labs(x ="Date", y = "Passenger numbers (1000's)", title="Air Passengers data")
#ARIMA Model
arimats <- auto.arima(tsdata)
arimats
ggtsdiag(arimats)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.