What’s the FREQ?

Lab 1G

Directions: Follow along with the slides and answer the questions in red font in your journal.

Clean it up!

How do we summarize categorical variables?

Frequency tables?

tally(~ ____, data = ____)

2-way Frequency Tables

bargraph(~phys_challenge | gender, data = atu_clean)

Interpreting 2-way frequency tables

Conditional Relative Frequencies

tally(~phys_challenge | gender, data = atu_clean, margin = TRUE)
##                 gender
## phys_challenge   Male Female
##   No difficulty  4140   5048
##   Has difficulty  530    775
##   Total          4670   5823
tally(~gender | phys_challenge, data = atu_clean, margin = TRUE)
##         phys_challenge
## gender   No difficulty Has difficulty
##   Male            4140            530
##   Female          5048            775
##   Total           9188           1305

On your own