Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is the difference between proportion and average?

3337


Mention how to limit decimal places for the variable using proc means?

1119


Are you sensitive to code walk-throughs peer review or QC review?

3145


Do you need to rearrange the order of the data for the report?

2309


How would you identify a macro variable?

1093


Are you involved in writing the inferential analysis plan? Tables specfications?

2564


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

1023


How would you invoke a macro? : sas-macro

1122


what can you learn from the sas log when debugging? : Sas programming

1089


How do you convert basic cube to transaction cube and transaction cube to basic cube?

2233


What are the best sas programming practices for handling very large datasets? : sas-grid-administration

1016


how does sas handle missing values in procs? : Sas programming

1256


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

934


what is sas database server? : Sas-di

1135


what is the use of proc sql? : Sas programming

1133