How to select the observations randomly from a SAS dataset
Answer Posted / learner
By using ranuni function. for example you want select 30
percent of data randamly from a data set.
data x;
set y;
if ranuni(100)<.3 ;
run;
here 100 is the seed. the number generated depends on this
seed .
Is This Answer Correct ? | 11 Yes | 1 No |
Post New Answer View All Answers
What are the applications primarily used by business analyst? : Sas-bi
How do you delete duplicate observations in sas?
what other sas products have you used and consider yourself proficient in using? : Sas programming
What do you understand by the term Normal Distribution?
Explain input and put function?
what are _numeric_ and _character_ and what do they do? : Sas programming
how do you debug and test your sas programs? : Sas programming
what are the benefits of data integration? : Sas-di
What was the last computer book you purchased? Why?
How can you create a macro variable with in data step? : sas-macro
What is PROC in SAS?
Which function is used to count the number of intervals between two sas dates?
Explain translate function?
what is the difference between unique key and primary key? : Sas-di
I need level 2 to 5 sas using companies in india