BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
laurenhosking
Quartz | Level 8
I’ve created a scatterplot that portrays how weight and height differs between genders. However I’m unsure what comments to make on what the plot is show. Also this is the most basic scatterplot would making it more advance help with a conclusion
1 ACCEPTED SOLUTION

Accepted Solutions
PaigeMiller
Diamond | Level 26

Here are two conclusions I would make from your plot

 

  1. Height and weight are positively correlated
  2. Males generally have higher weights and higher heights than females.
--
Paige Miller

View solution in original post

6 REPLIES 6
Rick_SAS
SAS Super FREQ

If you attach your plot we might be able to help. There are many ways to view these data. You might comment on the centers (clusters), the spread (variance/covariance), or on the slopes (regression).

 

If you are thinking about the data in a regression context (weight is a dependent variable; height is an independent variable) then you can form an ANCOVA (analysis of covariance plot) and discuss whether the males and females have the same intercept and same slope. You can create such a plot by using PROC SGPLOT, or you can use PROC GLM:

 

proc glm data=sashelp.class plots=fitplot;
class sex;
model weight = height sex height*sex;
run;

proc sgplot data=sashelp.class;
scatter x=height y=weight / group=sex;
reg x=height y=weight / group=sex nomarkers;
run;
laurenhosking
Quartz | Level 8

thank you so much. This is my plot. are the above things ok to comment on for this.scatter.png

PaigeMiller
Diamond | Level 26

Here are two conclusions I would make from your plot

 

  1. Height and weight are positively correlated
  2. Males generally have higher weights and higher heights than females.
--
Paige Miller
Rick_SAS
SAS Super FREQ

also

3) The lightest and shortest subjects are female. The heaviest and tallest are male.

4) The average height and weight of the females appear to be less than the average height and weight of the males.

5) There are some outliers. Four men are 180-190 cm tall but are more than 100 kg. A few women are 170 cm but more than 85 kg.

PaigeMiller
Diamond | Level 26

@Rick_SAS wrote:

also

 

5) There are some outliers. Four men are 180-190 cm tall but are more than 100 kg. A few women are 170 cm but more than 85 kg.


whether or not something is an outlier is subjective and depends on your assumptions and possibly some subject matter expertise — given my assumptions (which is subjective) and my knowledge of the subject matter (which is subjective) I would say there are no outliers shown here.

--
Paige Miller
Ksharp
Super User

You could use ELLIPSE to demonstrate what Rick pointed out .

 

proc sgplot data=sashelp.heart(obs=500);

scatter x=weight y=height/group=sex;

ellipse  x=weight y=height/group=sex;

run;

 

x.png

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 6 replies
  • 883 views
  • 3 likes
  • 4 in conversation