RailTrail.hightemp and cloudcover is quite small. Would you be sure that the two variables are not related at all? Create scatter plot. After examing the scatter plot, would you conclude that the two variables are not related at all?The data set is from a case-control study of smoking and Alzheimer’s disease. The data set has two variables of main interest:
smoking a factor with four levels “None”, “<10”, “10-20”, and “>20” (cigarettes per day)disease a factor with three levels “Alzheimer”, “Other dementias”, and “Other diagnoses”.The largest group that has Alzheimers is non-smokers because the box is the biggest one out of the mosaic table.
The group that has more cases than expected given independence is the people with other dementias who smoke more than 20 cigarettes per day.
No, smoking does not seem to matter in determining Alzheimer because in the mosaic chart, the boxes for smoking a certain amount of cigarettes per day for Alzheimers is small with no width.
RailTrail.Hint: The RailTrail data set is from the mosaicData package.
The variables that have positive correrlation with the number of trail users is high temp and average temp.
The season that seems to be most popular for trail users is high temp weather.
Hint: Use message, echo and results in the chunk options. Refer to the RMarkdown Reference Guide.