Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
Give this quiz to my class
Q 1/15
Score 0
Write the code to look at each gender in the slasher dataset and show what percentage of each gender Dies or Survives. Remember NO SPACES in your code.
30
Users enter free text
Q 2/15
Score 0
Write the code to look at each survival outcome in the slasher dataset and show what percentage of each survival outcome were Male or Female. Remember NO SPACES in your code.
30
Users enter free text
15 questions
Q.
Write the code to look at each gender in the slasher dataset and show what percentage of each gender Dies or Survives. Remember NO SPACES in your code.
1
30 sec
Q.
Write the code to look at each survival outcome in the slasher dataset and show what percentage of each survival outcome were Male or Female. Remember NO SPACES in your code.
2
30 sec
Q.
Write the code to look at each gender in the slasher dataset, showing what percentage of each gender Dies or Survives BUT include code to randomly assign the survival status to each observation in that dataset. Remember NO SPACES in your code.
3
30 sec
Q.
Write code to perform the function from the last question 500 times, and assign the result the name shuffles. Remember, NO SPACES in your code.
4
30 sec
Q.
Write the code that adds a column named diff to the shuffles dataset and assign the new dataset the name shufflediff. The column diff should store the difference between the percentage of females that survived and the percentage of males that survived for each observation. Remember NO SPACES in your code.
5
30 sec
Q.
Write the code to create boxplots of passenger ages faceted by whether they survived or not. Layout the boxplots so they are stacked on top of each other. Remember NO SPACES in your code.
6
30 sec
Q.
Write the code to find the median ages of survivors and non-survivors on the titanic. Remember NO SPACES in your code.
7
30 sec
Q.
Write the code to find the mean of the ages of survivors and non-survivors in the titanic dataset. Remember NO SPACES in your code.
8
30 sec
Q.
What is the mean age for survivors (copy and paste from RStudio)?
9
30 sec
Q.
What is the mean age for non-survivors (copy and paste from RStudio)?
10
30 sec
Q.
What is the difference in the mean ages of survivors and non-survivors (copy and paste from RStudio)?
11
30 sec
Q.
Write code to find the mean of the ages of survivors and non-survivors, shuffling their survival outcomes. Do this only one time (without a do loop). Remember, NO SPACES in your code.
12
30 sec
Q.
Write code to perform the function from the last question 500 times, and assign the result the name tshuffles. Remember, NO SPACES in your code.
13
30 sec
Q.
Write the code that adds a column named diff to the tshuffles dataset and assign the new dataset the name shufflediff. The column diff should store the difference between the mean ages of survivors and non-survivors. Remember NO SPACES in your code.
14
30 sec
Q.
Make a plot of the distribution of age differences in your shuffled dataset. Remember, NO SPACES in your code.