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

How can sas program be validated?

1041


What are the automatic variables for macro? : sas-macro

1266


how many display types available in sas bi dashboard? : Sas-bi

1094


What is the role of administrative users? : sas-grid-administration

1087


what is the purpose of _error_? : Sas programming

1150


Have you ever used the SAS Debugger?

1769


explain the proc in sas? : Sas-administrator

1098


What is the differnce between SDTM 3.1.2 to 3.1.1 version

5080


What are pdv and it functions?

1159


What are the features of SAS?

1046


what is a method for assigning first.var and last.var to the by groupvariable on unsorted data? : Sas programming

1012


Where do you use proc means over proc freq?

1131


what is null hypothesis? why do you consider that?

2917


How do you convert basic cube to transaction cube and transaction cube to basic cube?

2243


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

1048