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 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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