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

how many types of prompts are there? : Sas-bi

1123


What is a method to debug and test your SAS program?

1434


How sas treats the dsd delimiters?

1260


explain the concepts and capabilities of business object? : Sas-bi

1009


How to test the debugging in sas?

1242


What are the data types in sas?

1112


How do you debug and test your SAS programs?

1607


Difference between nodup and nodupkey options?

1268


how does sas handle missing values in sort order? : Sas programming

978


Explain the use of proc print and proc contents?

1013


Do you need to compute new variables? If so,should you do this before you execute the report-writing procedure?

1959


what is the difference between calculating the 'mean' using the mean function and proc means? : Sas programming

1309


Explain bmdp procedure?

1081


How will you generate test data with no input data?

1232


Briefly explain input and put function?

1137