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
Mention how to limit decimal places for the variable using proc means?
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
what is the difference between infile and input? : Sas-administrator
What system options would you use to help debug a macro? : sas-macro
how does sas handle missing values in a merge? : Sas programming
How many ways to overcome a missing values???
What is the general format of function in sas? : sas-grid-administration
What is the difference between INPUT and INFILE ?
Give an example where SAS fails to convert character value to numeric value automatically?
How to create list output for cross-tabulations in proc freq?
What is the different between functions and PROCs that calculate the same simple descriptive statistics?
what is a method for assigning first.var and last.var to the by groupvariable on unsorted data? : Sas programming
What are the features of base sas system?
What are common programming errors committed in sas
What is the order of application for output data set options, input data set options and SAS statements?