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

how to read the variables in sas? : Sas-administrator

814


how do you debug and test your sas programs? : Sas programming

874


What is the difference between class statement and by statement in proc means?

927


What are the data types does SAS contain?

881


Describe the function and untility of the most difficult SAS macro that you have written.

1977


How to limit decimal places for the variable using proc means?

838


How to include or exclude specific variables in a data set?

901


What is the difference between %local and %global? : sas-macro

913


What is the difference between reading data from an external file and reading data from an existing data set?

945


Will it bother you if the guy at the next desk times the frequency and duration of your bathroom or coffee breaks on the grounds that ?you are getting paid twice as much as he is??

2381


Explain data step in SAS

871


What can you learn from the SAS log when debugging?

1153


How do you control the number of observations and/or variables read or written?

1034


i have a dataset with 100 obs i want to generate title from 20th obs onwards with total observations. that should contain 100 obs.dont use firstobs and dnt split the data. use dataset block or proc report? how can we genarate;

2205


what type of graphs we will create(for 2+years candidates)?

2109