RailTrail.hightemp and cloudcover is quite small. Would you be sure 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 other dementias would be the non smokers with zero cigarettes per day.
One group that has more cases than expected given independence are smokers who smoke more than 20 cigaretts per day.
Smoking does seem to have a small relationship with other dementias. This is shown by the correlation of the graph with the boxes for smokers having correlation with other dementias.
RailTrail.Hint: The RailTrail data set is from the mosaicData package.
Hint: Use message, echo and results in the chunk options. Refer to the RMarkdown Reference Guide.