Hi,
I was looking for applying box plot for multiple variables on the same graph, I am unaware if this procedure is possible. If yes! please let me know how I can perform.
I also have another query. I need to execute a qq pot for varibles. please let me know how I can execute this on sas eminer and sas enterprise guide.
Thank you,
Prajna
Hello Prajna-
In Enterprise Miner, you can use a SAS Code node to run PROC UNIVARIATE to get the plots. Here is a tip from our Communities page.
Tip: Saving ODS Graphics in a SAS Code Node
Below, I modified the code from that tip for you in a way that you can use to create a normal probability plot.
- Connect a SAS Code node after the Regression node (or after the Metadata node).
- Select the Code Editor property.
- Enter this code:
%let name = npplot;
%let type= PDF;
%let description = my normal probability plot;
%em_register(key=&name, type=FILE, extension=&type);
ods &type file="&&em_user_&name";
/* put code here that you use to generate ODS graphics */
ods graphics on;
ods graphics;
proc univariate data=&EM_IMPORT_DATA plot normal;
var r_:;
run;
ods graphics off;
/* end of code for ODS graphics */
ods &type close;
%em_report(key=&name, block=MODEL, viewtype=FILEVIEWER, autodisplay=Y, description=&description);
- Close the Code Editor window.
- Run the node. View the results. A PDF is created with the PROC UNIVARIATE results.
Here is documentation about PROC UNIVARIATE in case you want to make any customizations.
Base SAS(R) 9.4 Procedures Guide: Statistical Procedures, Second Edition
Have a good week!
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!
Use this tutorial as a handy guide to weigh the pros and cons of these commonly used machine learning algorithms.
Find more tutorials on the SAS Users YouTube channel.