Desktop productivity for business analysts and programmers

WARNING: Fewer than 2 observations in the input data set

Reply
New Contributor
Posts: 2

WARNING: Fewer than 2 observations in the input data set

[ Edited ]

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

Trusted Advisor
Posts: 1,496

Re: WARNING: Fewer than 2 observations in the input data set

[ Edited ]

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

 

Show us your data. Show us your code.

New Contributor
Posts: 2

Re: WARNING: Fewer than 2 observations in the input data set

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

Grand Advisor
Posts: 17,325

Re: WARNING: Fewer than 2 observations in the input data set

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');
Grand Advisor
Posts: 17,325

Re: WARNING: Fewer than 2 observations in the input data set

[ Edited ]

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

 

Something else is wrong. 

Ask a Question
Discussion stats
  • 4 replies
  • 147 views
  • 0 likes
  • 3 in conversation