Directions: Follow along with the slides and answer the questions in red font in your journal.
cdcdata and find the columns for
gender(Use the History pane again if you need help to
heighta numerical or categorical variable? Why?
gendera numerical or categorical variable? Why?
cdcdata's variables (Use the code displayed in the History pane to resubmit previously typed commands). Use the code's output to help you complete the following:
cdcin the Environment pane.
structure of your
cdcdata and answer:
histogramfor each variable.
histogramis better at visualizing categorical variables? Which is better at visualizing numerical variables?
bargraph (~ ____ , data = ____ , groups = ____ )
groupsargument in your code change the graph?
groupsargument to create a
heightof males and females.
groupsuses color to differntiate between groups.
histogram (~ ____ | ____ , data = ____ )
drive_textthat's split by
genderto find out.
cdcdata, make a graph, and use the graph to describe how
drive_textuse differs with this variable.