BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I am confused with one problem that might due to ranuni function or the proc reg procedure. Here is the situation:
1. I created several dummy variables and try to create a new data with contains only the dummy variables and their source raw variables. Since the file is big, I split the file into two parts as my testing data and validation data. Here I use the ranuni to split.
2. In one of my procedure, I use proc reg and sas return a message indicating that my liner model is not fully ranked due to 'since the variables are a linear combination of other variables as shown'.

Since I am pretty sure that this dummy variable could not be the linear combination of others, so I went back and check my codes. Well, nothing went wrong. However, after I changed the seed of the ranuni, that warning message just disappeared and my codes worked fine.

Could anyone tell me why this happen? Does it relate to the mechansim that ranuni works in SAS?


Thank you very much for any comments!
1 REPLY 1
deleted_user
Not applicable
creating dummy variables without any restriction can endup with linear dependency (once in thousands). its name is ranuni (random). better use a big seed number.

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!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 1 reply
  • 715 views
  • 0 likes
  • 1 in conversation