BookmarkSubscribeRSS Feed
svs14
Calcite | Level 5

How to overcome this warning and run the regression in sas enterprise guide

4 REPLIES 4
PaigeMiller
Diamond | Level 26

Obviously, you need an input data set that has 2 or more observations.

 

Show us your data. Show us your code.

--
Paige Miller
svs14
Calcite | Level 5

My data set has more than 2 observations, one of the variable is a categorical variable containg the country names. Two of the countries in that occuronly once. Im getting this warning for those two countries for that particular variable

Reeza
Super User

The warning is still correct.

How would you like to handle those records?

 

If you want to exclude them, you can do so with a WHERE statement in the PROC.

 

where country not in ('United States');
Reeza
Super User

Yeah...you can't do a regression with less than 2 observations. 

 

Something else is wrong. 

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

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
  • 4 replies
  • 1677 views
  • 0 likes
  • 3 in conversation