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
for report generation which one you used proc report or data_null_?
why a stop statement is needed for the point= option on a set statement?
what is the different between functions and procs that calculate the same simple descriptive statistics? : Sas programming
what are the component of range? : Sas-bi
Intern stastical programmer written test
Explain how you can debug and test your SAS program?
what is star schema? : Sas-di
Hi,by usining ptf how we have to combine (likr merge)10 datasets at a time in the oracle database(and write a macro code also)?Like this i have a douts a lot if you dont mind may please send one text mail for me(madhusudhanap16@gmail.com)?
What do the sas log messages “numeric values have been converted to character” mean? What are the implications?
What are the prime responsibilities of data integration administrator? : Sas-di
Tell e how how dealt with..
What are the difference between sas functions and procedures?
How many data types are there in SAS?
Explain bmdp procedure?
Hi, Does anybody has lastest SAS certification(base, adv., clinical)dumps,if anybody has please email me at mailtorajani76@gmail.com. Thanks