Create a block chart of height and weight for each sex of data in the PROC GCHART statement. The output below is generated by the GCHART procedure to display age frequency for gender in data. Write the SAS code to produce the bar chart: Age Frequency by Gender FREQUENCY Use PROC PLOT to produce a plot that relates weight and height, with weight on the vertical axis.
Added by Mercedes L.
Close
Step 1
To create a block chart of height and weight for each sex, we can use the following SAS code: ``` proc gchart data=dataset; vbar sex / subgroup=height weight type=sum sumvar=height weight; run; ``` This will create a vertical bar chart (`vbar`) Show more…
Show all steps
Your feedback will help us improve your experience
Willis James and 89 other Intro Stats / AP Statistics educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Construct a histogram for the female student height data in Exercise $6-38$.
Descriptive Statistics
Frequency Distributions and Histograms
The following R code below will add variable BMI (Body Mass Index) and produce the graph on a scatter plot of the heightweight (hw) data. hw$BMI <- hw$weightLb / (hw$heightIn)^2 * 703 ggplot(hw, aes(x = heightIn, y = weightLb, colour = sex)) + geom_point() The output of the plot is given in the left panel. Figure 1: Left panel is for the given R code and right panel is for the requested R code. Modify the above code so that you get the graph (a) on the right panel in the graph above. (b) on the left panel in the graph below. (c) on the right panel in the graph below. Figure 2: Left panel is for Part (b) and right panel is for Part (c).
Adi S.
Recommended Textbooks
Elementary Statistics a Step by Step Approach
The Practice of Statistics for AP
Introductory Statistics
Watch the video solution with this free unlock.
EMAIL
PASSWORD