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

This entry was posted in General. Bookmark the permalink. Post a comment or leave

4573


What is the difference between match merge and one to one merge?

1244


What commands are used in the case of including or excluding any specific variables in the data set?

1092


How might you use MOD and INT on numeric to mimic SUBSTR on character Strings?

1365


Which are the statements whose placement in the data step is critical?

1254


what is hash files in sas and why we are using this one in sas?

2210


How substr function works in sas?

1222


How would you identify a macro variable? : sas-macro

1016


Enlist the syntax rules followed in sas statements.

1081


Describe 5 ways to do a “table lookup” in SAS?

1149


How do you test for missing values?

1629


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 ...

1402


Enlist the functions performed by sas.

1118


What is data _null_?

1137


explain about data integrator metadata reports? : Sas-di

1098