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
describe how to adjust the performance of data integrator? : Sas-di
what are informats in sas? : Sas-administrator
how would you create multiple observations from a single observation? : Sas programming
What are the statements that are executed only?
What is PROC in SAS?
How are numeric and character missing values represented internally?
Do you know the features of sas?
explain about data integrator metadata reports? : Sas-di
Difference between nodup and nodupkey options?
What is Linear Regression?
Explain input and put function?
If you were told to create many records from one record, show how you would do this using array and with proc transpose?
What is the difference between the proc sql and data step?
What is the difference between one to one merge and match merge? Give an example.
is data integration and etl programming is same? : Sas-di