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

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

The largest group that has alzheimers does not smoke, this is shown because in the alzheimers chunk of the graph, the group under ‘none’ is a larger chunk of the graph than those that do smoke x number of cigarettes a day.

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

The group that has more cases than expected is those with dementia that smoke more than 20 cigarettes a day. This is by chance as shown by the color of the chunk (purple, while the rest are grey).

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

Smoking does not seem to matter when determining alzheimers because the largest group of people with alzheimers did not smoke at all, but there were still some, so there does not seem to be any correlation.

Q4 Create correlation plot for RailTrail.

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

Q5 What variables have positve correlation with the number of trail users (volume)?

The variables witth a positive correlation with the number of trail users, represented in the table as ‘volume’, are hightemp, avgtemp, lowtemp, and summer. The numbers shown for these correlations are all positive numbers.

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.