HI. HAPPY NY~~
I have a question.
How does one limit the number of digits to the right of the decimal to round to the tenth?
For example:
proc means n mean stderr clm min max range data= avisits1;
vars
var diff_bg q_pre_gluc q_post_gluc;
run;
I only want .Xth rounded.
Thanks.
https://documentation.sas.com/?docsetId=proc&docsetTarget=n1qnc9bddfvhzqn105kqitnf29cp.htm&docsetVer... MAXDEC=number specifies the maximum number of decimal places to display the statistics in the printed or displayed output. MAXDEC= has no effect on statistics that are saved in an output data set. Default BEST. width for columnar format, typically about 7. Range 0-8 See Computing Descriptive Statistics with Class Variables Using a CLASSDATA= Data Set with Class Variables
PROC MEANS DATA=sashelp.class MEAN MAXDEC=1;
VAR height;
run;
@mgrzyb wrote:
Thank you.
I hate to bother you, but is there any way that you could write it out in
code?
Not sure i understand what you mean
PROC MEANS DATA=sashelp.class MEAN MAXDEC=1; VAR height weight; run;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.