How could you generate test data with no input data?

Answer Posted / rohit

SAS can be used to generate random numbers. The command
RANUNI is used to generate random numbers from a uniform
distribution ranging from 0 to 1, and the command RANNOR is
used to generate random numbers from a standard normal
distribution. To use the command, we need to specify a
seed. The seed, a numerical value, is placed in parentheses
after the command. If a different numerical value or seed
is specified, the commands will produce a different set of
random numbers. For example, the value produced by
RANUNI(1) is different from the value produced by RANUNI(2)

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what do the sas log messages "numeric values have been converted to character" mean? What are the implications? : Sas programming

922


Enlist the syntax rules followed in sas statements.

851


What is the basic structure of a sas program?

824


Do you need to know if there are any missing values?

809


What Proc glm does?

845


What are types of transport files?

7394


What are the implications?

1398


in the flow of data step processing, what is the first action in a typical data step? : Sas programming

853


What are the differences between sum function and using “+” operator?

806


Briefly explain input and put function?

844


How will you react when, while consulting a SAS documentation manual to get an answer to a problem, someone says hey, I thought you were supposed to know all that stuff already, and not have to look it up in a book?

2211


what are the best practices to process the large data sets in sas programming? : Sas-administrator

799


what is SAS OPTIMIZATION?

2038


What is the use of %include statement?

822


What is a macro routine?

2350