(5 pts)
I’ve got a random data generator on my webserver. You can download data directly into R and view the first couple of rows like so:
mydf = read.csv('https://marksmath.org/cgi-bin/random_data.csv?username=mark')
head(mydf,2)
# first_name last_name age gender height weight income smoke100 exerany
# 1 Donna Dinan 35 female 65.37 164.26 1947 0 1
# 2 Ramon Davis 26 male 71.81 193.70 39311 1 1
Note that the username
field must match your Discourse username and everyone gets different data.
The problem: Using your data, generate a contingency table relating gender and exercise. Does there appear to be a relationship? If so, what is that relationship?
Be sure to include the code you typed to get your answer. Code blocks are created by indenting your input four spaces.