y******r 发帖数: 37 | 1 Hello;
in sas, how do you randomly pick 10 numbers out of 29? | l****u 发帖数: 199 | 2 PROC SURVEYSELECT DATA=pop OUT=sample METHOD=SRS
SAMPSIZE=100 SEED=1234567;
RUN;
it is very basic thing, and you may spend a little time to learn it for
right using. | c*******o 发帖数: 8869 | 3 SAS is kind of cumbersome to do stuff like that
data a;
do i=1 to 29;
rank=ranuni(1);
output;
end;
run;
proc sort; by rank; run;
data result;
set a;
if _n_<=10;
run;
【在 y******r 的大作中提到】 : Hello; : in sas, how do you randomly pick 10 numbers out of 29?
| y******r 发帖数: 37 | 4 I got it, Thank you so much!
【在 y******r 的大作中提到】 : Hello; : in sas, how do you randomly pick 10 numbers out of 29?
|
|