Hi,
I want to generate a Histogam in the Univariate procedure and I get this warning
"WARNING: ODS Graphics is experimental in this release of the UNIVARIATE procedure."
Can anyone help me get the Histogram in the pdf format.
Thanks
The warning is there because behavior of the options related to the procedure could change in future releases.
The generate PDF output use
ODS PDF file="path and file name you want.pdf" ; /* there are other options but this is minimal*/
/* your univariate or other output code goes here*/
ods pdf close;
The warning is there because behavior of the options related to the procedure could change in future releases.
The generate PDF output use
ODS PDF file="path and file name you want.pdf" ; /* there are other options but this is minimal*/
/* your univariate or other output code goes here*/
ods pdf close;
Thank you so very much for the answer. This forum is very useful. I had to use all of the following too..
ods trace on;
ods exclude Moments BasicMeasures TestsForLocation Quantiles ExtremeObs;
ods pdf file="C:\Data\abc.pdf";
Is there any direct way to get only the Histogram in our PDF. If I dint do the ods exclude I get 3 pages and my interest is onlt the histogram.
Could not use ods INCLUDE. It says the file name is not correct!!so i went the round way
use no print in your univariate procedure:
options nodate nonumber;
ods pdf file='C:\temp\example.pdf' notoc;
proc univariate data=sashelp.class NOPRINT;
histogram height;
run;
ods pdf close;
Also on the X-axis I get variable label(Average_cost_per_Gallon). What do I have to do to Rename that label to something else (Average Cost per Gallon)
Thanks in Advance
Add a label to your variable ie
label average_cost_per_gallon='Average Cost per Gallon';
The opposite of EXCLUDE is SELECT, not "include." Thus you can say
ODS SELECT Histogram;
Thanks Rick
That doesn't work for me Rick:
598 ods select Histogram;
599 proc univariate data=sashelp.class;
600 var height;
601 histogram height;
602 run;
WARNING: Output 'Histogram' was not created. Make sure that the output object name, label, or path is spelled
correctly. Also, verify that the appropriate procedure options are used to produce the requested output
object. For example, verify that the NOPRINT option is not used.
NOTE: PROCEDURE UNIVARIATE used (Total process time):
real time 1.45 seconds
cpu time 0.11 seconds
It works provided that ODS graphics are enabled.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.