The question i want to solve is;
Make a scatterplot and portrays how weight (wt in x-axis) and height (ht
in y-axis) differs between genders (sex).Confirm your conclusions with a histogram and a comparative box plot.
I have made the scatterplot however am unsure how to do the second bit. Would I need 2 separate box plots and histograms to do this?
Box plots: one plot, two boxes (one for male and one for female)
Histogram: one plot, bars for males along side bars for females.
PROC SGPLOT will do both.
Box plots: one plot, two boxes (one for male and one for female)
Histogram: one plot, bars for males along side bars for females.
PROC SGPLOT will do both.
Both box plots and scatterplots have only one y-variable.
So you will need one box plot for height and another for weight. Same for histograms.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.