BookmarkSubscribeRSS Feed
yee
Calcite | Level 5 yee
Calcite | Level 5

Below is my code -

DATA blood_glucose_monitoring;

  INPUT Glucose;

  datalines;

  141

  158

  112

  153

  134

  95

  96

  78

  148

  172

  200

  271

  103

  172

  359

  145

  147;

run;

PROC PRINT DATA=blood_glucose_monitoring;

run;

PROC UNIVARIATE DATA=blood_glucose_monitoring PLOT;

  VAR Glucose;

run;

I have a horizontal bar graph, box plot, but don't know how to generate a stem leaf plot.

Thank you!

1 REPLY 1
data_null__
Jade | Level 19

The first plot in the output is either a stem-and-leaf plot (Tukey; 1977) or a horizontal bar chart. If any single interval contains more than 49 observations, the horizontal bar chart appears. Otherwise, the stem-and-leaf plot appears. The stem-and-leaf plot is like a horizontal bar chart in that both plots provide a method to visualize the overall distribution of the data. The stem-and-leaf plot provides more detail because each point in the plot represents an individual data value.

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
  • 1 reply
  • 3627 views
  • 0 likes
  • 2 in conversation