The data set is from a case-control study of smoking and Alzheimer’s disease. The data set has two variables of main interest:

## ── Attaching packages ────────────────────────────── tidyverse 1.3.0 ──
## ✓ ggplot2 3.3.0     ✓ purrr   0.3.3
## ✓ tibble  2.1.3     ✓ dplyr   0.8.5
## ✓ tidyr   1.0.2     ✓ stringr 1.4.0
## ✓ readr   1.3.1     ✓ forcats 0.5.0
## ── Conflicts ───────────────────────────────── tidyverse_conflicts() ──
## x dplyr::filter() masks stats::filter()
## x dplyr::lag()    masks stats::lag()
## Loading required package: grid

Q1 Describe the largest group that has other dementias. Discuss it by number of cigarettes per day.

The largest group of people with other dimentias is non-smokers. In the graph showed, and the data given, the largest number of people with other dimentias were those who do not smoke every day.

Q2 Describe one group that has more cases than expected given independence (by chance). Discuss it by number of cigarettes per day.

It is most surprising that the group of non-smokers contracts the most disease but reading he data again it surprised me more that there were not more disease cases with smokers who smoke more than 20 cigarettes a day. In total there were more cases of disease with smokers who smoked 10-20 cigarettes per day.

Q3 Does smoking seem to matter in determining other dementias? Discuss your reason using the masaic chart above.

It does not seem to matter if the majority of those who develop other dimentias are non-smokers.

Q4 Create correlation plot for RailTrail.

Hint: The RailTrail data set is from the mosaicData package.

Q5 List all four variables that have negative correlation with the number of trail users (volume).

The four variables that have negative correlation with the number of trail users are: spring, fal, cloud cover, and precipitation.

Q8 Hide the messages, the code and its results on the webpage.

Hint: Use message, echo and results in the chunk options. Refer to the RMarkdown Reference Guide.

Q9 Display the title and your name correctly at the top of the webpage.

Q10 Use the correct slug.