How do you generate random samples?

Answer Posted / bhimu

ranuni()- Function will generate uniform random numbers
between 0 and 1

Ranuni(123) - here 123 is called seed.

Like that you can use Binomial and Poisson distributions.

You can also go for the procedure
PROC SURVEYSELECT

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

for report generation which one you used proc report or data_null_?

6576


Explain proc univariate?

604


Of all your work, where have you been the most successful?

4197


If a variable contains only numbers, can it be a character data type?

610


Can you execute macro within another macro? If so, how would sas know where the current macro ended and the new one began? : sas-macro

694






What is the role of administrative users? : sas-grid-administration

657


How substr function works in sas?

699


What is the difference between order and group variable in proc report?

833


How would you identify a macro variable? : sas-macro

528


what is scheduling and how will u implement it. In scheduling 5 jobs r running if there is an error occured at 3rd job and how will u check and waht necessary steps will u take not to repeat the same mistake

1915


What versions of SAS have you used (on which platforms)?

1011


what are the component of range? : Sas-bi

614


What is a put statement?

660


What are SAS/ACCESS and SAS/CONNECT?

626


Can you execute a macro within a macro? Describe. : sas-macro

667