BookmarkSubscribeRSS Feed
michshoot
Fluorite | Level 6
proc mi data=auto2 seed=???out=auto_nomiss nimpute=1;
class doors cylinders fuel_type;
fcs reg(nlosses bore stroke horsepower peak_rpm/details) logistic(doors=cylinders fuel_type cylinders*fuel_type) ;
var  nlosses  bore stroke horsepower peak_rpm doors cylinders fuel_type;
run;

where is seed ? 

2 REPLIES 2
Reeza
Super User

You didn't specify it, so there's no seed. I'm confused as to the question here.

Seed = ????

SEED=number

specifies a positive integer to start the pseudo-random number generator. The default is a value generated from reading the time of day from the computer’s clock. However, in order to duplicate the results under identical situations, you must use the same value of the seed explicitly in subsequent runs of the MI procedure.

The seed information is displayed in the "Model Information" table so that the results can be reproduced by specifying this seed with the SEED= option. You need to specify the same seed number in the future to reproduce the results.

 

This is any number you choose, there's no specific requirement for it to be anything. The purpose is to allow you to replicate the results to test as you go through. It's hard to test code with random results if they're constantly changing. 

 


@michshoot wrote:
proc mi data=auto2 seed=???out=auto_nomiss nimpute=1;
class doors cylinders fuel_type;
fcs reg(nlosses bore stroke horsepower peak_rpm/details) logistic(doors=cylinders fuel_type cylinders*fuel_type) ;
var  nlosses  bore stroke horsepower peak_rpm doors cylinders fuel_type;
run;

where is seed ? 


 

 

Rick_SAS
SAS Super FREQ

You can specify  any integer between 1 and 2 billion, such as

seed=12345

or

seed=<your telephone  number>

or

seed=938324751

 

For details, see "How to choose a seed for generating random numbers"

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!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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