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.4
## ✓ tibble  3.0.1     ✓ 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 smallest group that has Other dementias. Discuss it by number of cigarettes per day.

The smallest group that has Other dementias are the group that smokes less than 10 cigarettes a day. The other group smokes over 20 cigarettes a day that has the next largest amount of dementias.

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

Other diagnoses of other cases have a large amount of people who smoke 10-20 packs a day.

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

Smoking does seem to matter in determining Alzheimers. Other diagnoses are also affected by cigarretts a lot as well, more so in some cases.

Q4 Create correlation plot for SaratogaHouses.

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

Q5 What variable has the strongest positive correlation with home prices (price)?

Living area has the highest correlation with home price.

Q6 Based on your answer in Q5, what type of homes would be more expensive?

Houses with the most living area would be the most expensive.

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.