BookmarkSubscribeRSS Feed
NewbieSAS
Calcite | Level 5
As a total newbie in SAS, being unfamiliar with the 'real' SAS programming, I decided to use EG to run a linear regression on a unbalanced panel data set (through Task>Time Series> Regression Analysis of Panel data) consisting of about 180.000 rows.

While doing so however, i get error codes on either the time-series or the cross section since there is plenty of missing data:

"ERROR: There is only one cross section or time series observation"

and

"ERROR: Not enough observations with non-missing model variables for model statement in cross section GVKEY=001411"

practically, I assume this means that Cross-section items appearing only once in the dataset should be deleted, right? How can I best approach this problem taking into account my lack of programming skills?

Thanks in advance,

Robert
1 REPLY 1
TWOSU
Calcite | Level 5

Hi NewbieSAS, 

 

I had the same problem. This is what I did. Open the data set in excel. Select the column with the cross-section ID (in my case it is firm ID number). Use conditional formating icon to highlight all duplicates. Select and delete the non-duplicates. Hope that works. 

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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