How to select the observations randomly from a SAS dataset

Answer Posted / name is no need

I think by using mod operator we can select the random
observations.
syntax:mod(_n_,number);

Is This Answer Correct ?    5 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain translate function?

636


What would be the value of month at the end of data step execution and how many observations would be there?

583


What are the parameters of scan function?

624


What are the different operating system platforms in which we can use sas? : sas-grid-administration

595


Difference between sum function and using “+” operator?

606






Mention sas system options to debug sas macros.

663


For what purpose would you use the RETAIN statement?

1047


Can you execute a macro within a macro? Describe. : sas-macro

678


how to read the variables in sas? : Sas-administrator

556


How you can read the variables that you need?

655


What does P-value signify about the statistical data?

856


What is the maximum and minimum length of macro variable

657


What can you learn from the SAS log when debugging?

921


explain the function of substr in sas? : Sas-administrator

558


What are all the problems you faced while validating tables and reports?

3016