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
what is sas application server? : Sas-di
For a user to have access to a standard workspace server, is internal authentication alone is sufficient? : sas-grid-administration
How you can read the variables that you need?
How to test the debugging in sas?
what has been your most common programming mistake? : Sas programming
How to specify variables to be processed by the freq procedure?
Explain what is the use of proc gplot?
In sas admin differentiate between roles and capabilities? : sas-grid-administration
In sas, what are the areas that you are most interested in? : sas-grid-administration
what is metadata? : Sas-bi
Name some categories in sas 9? : sas-grid-administration
Which function is used to count the number of intervals between two sas dates?
Describe the function and utility of the most difficult SAS macro that you have written?
what is the difference between infile and input? : Sas-administrator
Hi, If anyone has base SAS certification dumps, please share.