BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Andygray
Quartz | Level 8

How to use a proc box plot procedure to create a box plot for one variable where the syntax seems to require group variable in the plot statement besides the analysis variable?

 

PLOT Statement

 

PLOT (analysis-variables)*group-variable <(block-variables )> <=symbol-variable> </ options > ;

I only want to see the spread for the variable height in the dataset sashelp.class

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

Perhaps use a different procedure:

proc sgplot data=sashelp.class;
   vbox height;
run;

View solution in original post

4 REPLIES 4
PaigeMiller
Diamond | Level 26

Create a group variable that has the same value for every observaiton in your data set.

--
Paige Miller
ballardw
Super User

Perhaps use a different procedure:

proc sgplot data=sashelp.class;
   vbox height;
run;
Andygray
Quartz | Level 8

Thank you everybody for your responses. @ballardw You are a star!!!!!!!!!

Reeza
Super User

Any of the GPLOT/PLOT procedures would be considered outdated. Use the SG Procedures whenever possible.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

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!

Register now

What is ANOVA?

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.

Discussion stats
  • 4 replies
  • 2834 views
  • 2 likes
  • 4 in conversation