BookmarkSubscribeRSS Feed
viveklsvivek
Calcite | Level 5

Hi

I am trying to do a box plot with the PROC BOXPLOT but I see an error.

the code I am trying to write is

proc boxplot data=ect_2014.dosering;

plot ( frekvenssista  pulsbreddSista)*Sjukhus_Gruppnamn;

run;

I reveice this error

275

276  proc boxplot data=ect_2014.dosering;

ERROR: Procedure BOXPLOT not found.

277     plot ( frekvenssista  pulsbreddSista)*Sjukhus_Gruppnamn;

278  run;

Please help me of what to correct in this?

/vivek

3 REPLIES 3
Cynthia_sas
SAS Super FREQ

Hi:

  This error indicates that PROC BOXPLOT is not included in your installation, probably because SAS/GRAPH is either not included with your installation or not installed. You would need to check with your system administrator to see whether you have SAS/GRAPH available to use.

         

  It is also possible to create boxplots using ODS GRAPHICS, which is part of Base SAS. You would use the SGPLOT procedure with either the HBOX or the VBOX statement. Here is an example from the documentation.

     

Cynthia

   

proc sgplot data=sashelp.heart;

  title "Cholesterol Distribution by Weight Class";

  hbox cholesterol / category=weight_status;

run;

title;

 

proc sgplot data=sashelp.heart;

  title "Cholesterol Distribution by Weight Class";

  vbox cholesterol / category=weight_status;

run;

title;

viveklsvivek
Calcite | Level 5

Hi thank you Cynthia.,

However I Think both give a different format of output.

Please see the attachment , or may be I am missing on something here.,

I just need the box plot with mean and median and not the other values.

SGPlot.pngbox.png

I need a plot which shows only the mean and median(right plot), and how can I do it. ?

Cynthia_sas
SAS Super FREQ


Hi,

If you look in the documentation, you will see that there are control options for the markers and much, much else. Here's the link to the doc

SAS(R) 9.3 ODS Graphics: Procedures Guide, Third Edition

cynthia

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 1329 views
  • 3 likes
  • 2 in conversation