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.

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!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 17 replies
  • 1804 views
  • 1 like
  • 4 in conversation