0
$\begingroup$

PROC means data=d mean; var a; class b; var a; run;

I want to perform the "PROC means" for continuous "var a": 1) in general and 2) by classes. But it performed by the classes only. How to make procedure for "var a" here in general too?

P.S. SAS WARNING: Analysis variable "a" was defined in a previous statement, duplicate definition will be ignored.

$\endgroup$
0
$\begingroup$

Just run

PROC means data=d mean; var a; run;

for overall data

$\endgroup$
0
$\begingroup$

PROC means data=d mean; var a; run;

PROC means data=d mean; class b; var a; run;

I knew that can be write so separately! But I thought, it is can be write somehow together!

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.