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-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!

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