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 will you locate the sas platform applications? : Sas-bi

590


Mention the difference between ceil and floor functions in sas?

652


How many ways to overcome a missing values???

2345


what is hash files in sas and why we are using this one in sas?

1738


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

2440






What is the order of application for output data set options, input data set options and SAS statements?

1092


Compare sas with other data analytics tools.

594


What was the last computer book you purchased? Why?

1926


how many types of prompts are there? : Sas-bi

562


What is slibref?

755


Describe the ways in which you can create macro variables?

648


What is the general format of function in sas? : sas-grid-administration

577


explain the concepts and capabilities of business object? : Sas-bi

553


Explain what Proc glm does?

646


What are symget and symput? : sas-macro

746