0
$\begingroup$

I am performing an interrupted time series analysis. I plotted the data and then checked for autocorrelation using ACF and PACF.

Here is the ACF on LHS and PACF on RHS

par(mfrow=c(1,2)) 
acf(residuals(model_ols), main="ACF") 
acf(residuals(model_ols), type = "partial", main="PACF")

How do make sense of this plot now? Can someone tell me what should be the next step?

$\endgroup$

marked as duplicate by Glen_b r Aug 10 '18 at 11:52

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

migrated from stackoverflow.com Jul 12 '18 at 23:57

This question came from our site for professional and enthusiast programmers.

  • $\begingroup$ i am using the following code: par(mfrow=c(1,2)) acf(residuals(model_ols), main="ACF") acf(residuals(model_ols), type = "partial", main="PACF")...There are 16 observations . I hope lag.max is fine. $\endgroup$ – Vasu Vikram Jul 12 '18 at 18:24
  • 1
    $\begingroup$ I would judge there's basically nothing going on here. The fact that PACF(2) (and ACF(4) is marginally beyond the 95% confidence interval is compensated by the fact that you're looking at about 25 comparisons ... $\endgroup$ – Ben Bolker Jul 12 '18 at 18:54
  • $\begingroup$ @BenBolker when I use p=2 and then check for model improvement for p=3 or 4 through anova(model_p2,model_p3), it shows very significant p-value. What can I do now?? $\endgroup$ – Vasu Vikram Jul 12 '18 at 19:14

Browse other questions tagged or ask your own question.