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

how would you create multiple observations from a single observation? : Sas programming

564


how will you location sas platform applications available from web browser? : Sas-bi

540


How to limit decimal places for the variable using proc means?

595


What are the differences between proc means and proc summary?

599


what are some good sas programming practices for processing very large data sets? : Sas programming

507






what are input dataset and output dataset options? : Sas programming

561


Which date function advances a date, time or datetime value by a given interval?

662


Difference between nodup and nodupkey options?

628


if a variable contain dates like "2015/01"---"2015/12" (yymm) ,How to add day to those dates,if them month is jan then 31 if the month is feb then 28 so on ...

940


For clinical entire study how many tables will create approx?

1520


What will calendar procedure do?

593


What is the good sas programming practices for processing large data sets?

624


How long can a macro variable be? A token? : sas-macro

715


why is sas considered self-documenting? : Sas programming

675


how do you want missing values handled? : Sas programming

532