BookmarkSubscribeRSS Feed
Aidaan_10
Calcite | Level 5

Hi, 

I am new to SAS graph...I have attached a sample of boxplot, it's missing the errorbars from two timepoints but showing up on baseline. I want the error bars to be displayed can someone please help.The error bars shows up in SPSS using the same data but not in SAS.

I am using  sgplot procedure

 

proc sgplot data=test noautolegend ;
vbox Score / category=visit connect=mean;
xaxis label='Assessments';
yaxis label='Score';
run;

2 REPLIES 2
Reeza
Super User

They're whiskers, not error bars, and yes there's a difference. 

 

They are shown, but your data doesn't have a variable distribution so I would check your data to ensure that you have the same in SPSS and SAS. You can kind of see that very easily on the second and third plots. The second one has the bar just above the top line, barely distinguishable, and the third has it at the bottom. 

 

Aidaan_10
Calcite | Level 5

Sorry for the use of wrong term and thanks for the help...

sas-innovate-2024.png

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.

 

Register now!

How to Concatenate Values

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.

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
  • 2 replies
  • 1214 views
  • 0 likes
  • 2 in conversation