Go to the ae-06-[GITHUB USERNAME]
repo, clone it, and start a new project in RStudio.
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.
Female | Male | |
---|---|---|
Benralizumab Q4W | 274 | 124 |
Benralizumab Q8W | 253 | 146 |
Placebo | 269 | 138 |
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.
What is the probability that a randomly selected patient in the trial was assigned to placebo?
What is the probability that a randomly selected patient in the trial was male?
What is the probability that a randomly selected patient in the trial was assigned to placebo or was male?
What is the probability that a randomly assigned patient in the trial was assigned to placebo and was male?
What is the probability that a randomly assigned patient in the trial was male or was white?