Skip to content

Commit

Permalink
chp 4 exercises fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
hardin47 committed Feb 28, 2024
1 parent 659e269 commit e9381a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion _freeze/04-explore-categorical/execute-results/html.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions exercises/_04-ex-explore-categorical.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@
c. How can you investigate the relationship between meat consumption and life expectancy in the presence of confounding variables (like income)?
8. **Florence Nightingale.** Florence Nightingale was a nurse in the Crimean War and an early statistician.
In her notes, she opined "In comparing the deaths of one hospital with those of another, any statistics are justly considered absolutely valueless which do not give the ages, the sexes, and the diseases of all the cases." [@nightingale:1859]
In her notes, she opined, "In comparing the deaths of one hospital with those of another, any statistics are justly considered absolutely valueless which do not give the ages, the sexes, and the diseases of all the cases." [@nightingale:1859]
a. Nightingale describes three confounding variables to consider when comparing death rates across hospitals.
What are they?
Expand All @@ -302,11 +302,11 @@
b. Provide two additional potential confounding variables for this situation.
Check to make sure that the variables are associated with both the explanatory variable (hospital) and the response variable (death).
c. Why does Nightingale say that the statistics are "valueless" if given without being broken down by age, sex and disease?
c. Why does Nightingale say that the statistics are "valueless" if given without being broken down by age, sex, and disease?
Explain.
9. **On-time arrivals.** Consider all of the flights out of New York City in 2013 that flew into San Francisco (SFO), Los Angeles (LAX), or Puerto Rico (BQN) on the following two airlines: JetBlue (B6) or United Airlines (UA).
Below are the tabulated counts for the number of flights `on time` and `delayed` for each airline into each city.[^_04-ex-explore-categorical-4]
9. **On-time arrivals.** Consider all of the flights out of New York City in 2013 that flew into Puerto Rico (BQN), Los Angeles (LAX), or San Francisco (SFO) on the following two airlines: JetBlue (B6) or United Airlines (UA).
Below are the tabulated counts for the number of flights `delayed` and `on time` for each airline into each city.[^_04-ex-explore-categorical-4]
```{r}
flights |>
Expand Down

0 comments on commit e9381a5

Please sign in to comment.