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

Code a PROC MEANS that shows both summed and averaged
output of the data.

Answer Posted / amit nakrani

I think we can do it in following way. Please correct me if
it is wrong.

proc means noprint data = sourcedata;
var var1 var2;
by var3;(optional)
output out = newdata
sum(var1,var2) = SumVar1 SumVar2
mean(var1,var2) = MeanVar1 MeanVar2;
run;

proc print data = newdata;
run;

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is slibref?

1221


What is the difference between nodupkey and nodup options?

990


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

3911


Differences between where and if statement?

1034


what is data access? : Sas-di

1093


what are some problems you might encounter in processing missing values? In data steps? Arithmetic? Comparisons? Functions? Classifying data? : Sas programming

1190


what do the pad and dim functions do? : Sas programming

979


What is program data vector (pdv) and what are its functions?

1168


Explain by-group processing?

955


What is by-group processing?

956


what is the function of catx syntax? : Sas-administrator

1058


What is auto call macro and how to create a auto call macro? What is the use of it? How to use it in sas with macros? : sas-macro

998


what is sas data set?

1062


What are the data types in sas?

1014


What are the functions used for character handling?

1198