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

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

1054


What is the different between functions and PROCs that calculate the same simple descriptive statistics?

1800


What is the function of output statement in a SAS Program?

1078


how to do user inputs and command line arguments in sas?

3054


How would you code a macro statement to produce information on the sas log? This statement can be coded anywhere? : sas-macro

1052


Hi Jeevan/Akshara I have tried to contact SASI Vats for latest Advanced SAS Programming Certification Dumps (A00-212) but have not got any response. I would highly and gratefully appreciate your assistance in this regard. If you guys have access to this, would you be kind enough to forward it to me ? I would abide by all the terms you have for this. Please, note my email id: upretigopi@yahoo.com Preti Sharma

3521


Explain the special input delimiters used in sas programming.

1011


what are the benefits of data integration? : Sas-di

1111


What is program data vector (pdv)?

1301


what is the different between functions and procs that calculate the same simple descriptive statistics? : Sas programming

1096


what cause the "error: connect:" and "error in the libname statement" when there weren't any such problems?

2191


How would you include common or reuse to be processed along with your statements?

2382


In sas admin differentiate between roles and capabilities? : sas-grid-administration

1009


what are 5 ways to perform a table lookup in sas? : Sas-administrator

1241


describe the interaction table in sas di? : Sas-di

1032