Andyy Hu
Andyy Hu

Reputation: 59

sas proc means. Fill in gaps

enter image description here

was wondering if anyone knows how to fill in the missing boxes with the categories. Also is it possible to format proc mean generated values like mean and median? Was trying to add a dollar $ sign to it using the dollar infomat.

title1   height= 0.25in  'Total Medical Expenditures by Sex, Age and Smoking Status';
title2   height= 0.15in  'U.S Adults, Medical Expenditure Panel Survey 2018';
proc means data=mepsUse n mean median std maxdec=0 ;
 var   totexp18;
 class sex ageGrp currSmoke;
 format sex MaleFemale. ageGrp AgeCategory. currSmoke Smoker.;
run;

Upvotes: 0

Views: 186

Answers (1)

data _null_
data _null_

Reputation: 9109

I think you want to create a data set. For example.

proc means data=sashelp.class stackods completetypes;
   ods output summary=classsummary;
   class sex age;
   var height weight;
   run;
proc print;
   run;

enter image description here

Upvotes: 1

Related Questions