BookmarkSubscribeRSS Feed
qkaiwei
Calcite | Level 5

R language stament, and how to do it by SAS IML?

b<-sample(1:9,size=3,replace=FALSE) , that means creating 1 set with 3 elements, every element is randomly selected from 1 to 9, and each element is different with the other two in the set(non-replacement sampling).

Thanks!

1 REPLY 1
Rick_SAS
SAS Super FREQ

If you have SAS/IML 12.1 (released with SAS 9.3M2), use the SAMPLE function.