Using a Venn Diagram

Clone a repo + start a new project

Go to the ae-06-[GITHUB USERNAME] repo, clone it, and start a new project in RStudio.

Configure git

Run the following code to configure Git. Fill in your GitHub username and the email address associated with your GitHub account.

library(usethis)
use_git_config(user.name = "your github username", user.email ="your email")
library(tidyverse)

The following tables are representative of the SIROCCO trial (Bleecker et al., 2016), which examined the safety and efficacy of benralizumab for patients with severe, poorly controlled asthma. The tables present baseline demographic information for patients enrolled in the file. There were 1204 patients in this study.

You may knit the document to see the tables. “Q4W” means “every four weeks” and “Q8W” means "every eight weeks. The two tables represent the same group of people, just different demoraphic information in the columns.

Gender demographics
Female Male
Benralizumab Q4W 274 124
Benralizumab Q8W 253 146
Placebo 269 138
Ethnicity demographics
Asian Black Other White
Benralizumab Q4W 54 15 44 285
Benralizumab Q8W 50 15 47 287
Placebo 50 16 39 302

Answer the following questions using the table provided above (knit this document first to see the tables!). If a probability cannot be calculated, indicate what additional information is needed in order to do so.

Exercise 1

What is the probability that a randomly selected patient in the trial was assigned to placebo?

Exercise 2

What is the probability that a randomly selected patient in the trial was male?

Exercise 3

What is the probability that a randomly selected patient in the trial was assigned to placebo or was male?

Exercise 4

What is the probability that a randomly assigned patient in the trial was assigned to placebo and was male?

Exercise 5

What is the probability that a randomly assigned patient in the trial was male or was white?