BookmarkSubscribeRSS Feed
Calcite | Level 5
I have a very simple time series related question.

I have data spanning a four month time period. I have one data record for each day, so a total of approx. 120 data points.

All I want to know is whether there is a periodicity/seasonality to the data. Descriptively, it look like there is a weekly periodicity, but how do I identify this statistically?
Quartz | Level 8 SPR
Quartz | Level 8
Hello AshP,

You could use proc UCM:

Fluorite | Level 6
The simplest method to model seasonal patterns is to use dummy variables to represent the seasons. With such a short time series, a weekly periodicity is about the longest effect you can detect (i.e., you would not be able to see a monthly effect with only 4 months). A regresion model with the seasonal dummy variables as your inputs will serve you, but if there is any residual autocorrelation remaining, your MSE may seriously underestimate the variance of the error terms, so your p-values could be way off.

I'd use proc autoreg with the dummy variables and ask for the Durbin-Watson statistic to check for autocorrelation. Proc autoreg can handle autoregressive errors, if present.

Quartz | Level 8
Proc Spectra or Proc Arima: Dickey Fuller test, Seasonal Decomposition Plot

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 4 in conversation