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

Can you calculate the mean, median and mode of the following data set
using data step logic? Don't use any function or procedure.
data a;
input age @@;
datalines;
22 32 32 32 43 23 24 56 45 54 28 29 27 26 25 28 30 20 18 37 36 47 46
56 19 20
;
run;
I have calculated the mean which i have posted in the answer section.

Answer Posted / sattwik kumar

data b;
set a end=lastobs;
age_temp+age;
count+1;
if lastobs then
mean=age_temp/count;
run;

Is This Answer Correct ?    19 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hello Friends, am new to this forum and am not good at sas progarmming. please can any one of you send me couple of sample large sample SAS Jobs which can you use 200 MB of data and other sas job upto 25GB of data. am doing a performance testing on our legacy systems and new upgraded system. I would really appreciate if you can do me this favor Thank you Priya

1871


How do dates work in SAS data?

1119


Mention some common errors that are usually committed in sas programming.

998


what is snowflake schema? : Sas-di

1148


how do you pull data from equifax?tell me the process?

1741


Tell me more about the parameters in macro? : sas-macro

1011


How does the internal authentication work in sas? : sas-grid-administration

1068


What are pdv and it functions?

1038


What is the use of the %include statement?

1086


what is information maps?

2155


Give some examples where proc report’s defaults are different than proc print’s defaults?

1012


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

967


what is the basic structure sas administrator? : Sas-administrator

958


Explain substr function?

1032


Can you execute macro within another macro? If so, how would sas know where the current macro ended and the new one began? : sas-macro

1135