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.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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
  • 800 views
  • 0 likes
  • 2 in conversation