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

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

890


What is the basic syntax style in SAS?

833


How do you define proc in sas? : sas-grid-administration

853


How do you use the do loop if you don’t know how many times you should execute the do loop?

993


How long can a macro variable be? A token? : sas-macro

928


In sas, what are the areas that you are most interested in? : sas-grid-administration

823


what is broad cast agent? : Sas-bi

813


Are you involved in writing the inferential analysis plan? Tables specfications?

1965


what is the use of proc sql? : Sas programming

778


describe how to adjust the performance of data integrator? : Sas-di

751


What is factor analysis?

851


Hello Friends, am new to this forum and am not good at sas progarmming. please can any one of you send me couple of sample large sample SAS Jobs which can you use 200 MB of data and other sas job upto 25GB of data. am doing a performance testing on our legacy systems and new upgraded system. I would really appreciate if you can do me this favor Thank you Priya

1581


How to test the debugging in sas?

847


How you can read the variables that you need?

863


Difference between nodup and nodupkey options?

853