BookmarkSubscribeRSS Feed
ccherrub
Obsidian | Level 7

Hi so I keep trying to do a first difference approach and end it with the code:

 

proc panel Data=MM6 plots=none;
   ID Statefips Year;
   Model ND = treatment / FIXONE noint HCCME=2 Cluster;
run;

 

However I keep recieving this error:

 

The data set WORK.MM6 is not sorted in ascending sequence with respect to the time series ID. The current time period has
year=2009 and the previous time period has year=2009 in cross section statefips=1.

 

How would I go about to fix this? Thanks for the help!

1 REPLY 1
Patrick
Opal | Level 21

I believe this forum discussion should provide all the guidance you need.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 872 views
  • 0 likes
  • 2 in conversation