- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Is there any option to mention decimal places individually in Proc means?
Like if max dec=3 is mentioned in Proc means, it gives 3 decimal values for all the summary statistics. Instead, I need 4 decimal for Mean, Min Med and max 3 decimal places. can this be done?
Thanks
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
@SaranyaSundar wrote:
Is there any option to mention decimal places individually in Proc means?
Like if max dec=3 is mentioned in Proc means, it gives 3 decimal values for all the summary statistics. Instead, I need 4 decimal for Mean, Min Med and max 3 decimal places. can this be done?
Thanks
Likely your best approach would be to use Proc Means to generate an output data set with the OUT statement and then use Proc Print/Report/Tabulate to display the results where can control display formats per variable.
Or possibly go straight to Proc Report or Tabulate .
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
You can try the maxdec option as below
proc means maxdec=2;var WEIGHT HEIGHT;
Title 'Example 1b - PROC MEANS, limit decimals, specify variables'
run;
Jag
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
@SaranyaSundar wrote:
Is there any option to mention decimal places individually in Proc means?
Like if max dec=3 is mentioned in Proc means, it gives 3 decimal values for all the summary statistics. Instead, I need 4 decimal for Mean, Min Med and max 3 decimal places. can this be done?
Thanks
Likely your best approach would be to use Proc Means to generate an output data set with the OUT statement and then use Proc Print/Report/Tabulate to display the results where can control display formats per variable.
Or possibly go straight to Proc Report or Tabulate .