BookmarkSubscribeRSS Feed
sastuck
Pyrite | Level 9

you know what--it looks like this was linked to the case of the merge statement having more than one data set with repeats of BY values. Since implementing the code that you and @Tom came up with, SAS read 12,650 observations, and SAS used 12,650 observations. Perfect!

 

So the issue must have been the regression not including data from either but not both sources and labelled them as "missing," meaning they didn't match with the other data? 

PaigeMiller
Diamond | Level 26

I'm not going to go through your code, and I don't have your data set, but the problem is that a missing value in the X variable or a missing value in the Y variable will cause SAS to NOT use that record.

 

The very simple step that you need to take is to open the data set paper.ceo_firm into SAS ViewTable (or other viewer) and actually look at the data being sent into PROC REG and see if there are missings. Or use the NMISS function to count the number of missings in each record (among the X and Y variables used in the regression)

--
Paige Miller
sastuck
Pyrite | Level 9

This issue has already been resolved. Thanks though.

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

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 17 replies
  • 2897 views
  • 1 like
  • 4 in conversation