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 smokes zero cigarettes a day
The one group that has more cases than expected given independence is the dementia group because they smoke more than 20 cigarettes a day
Yes, smoking does seem to matter in determining other dementias becuase in the dark shaded blue column, smoking over 20 times a day seems to have an effect on more cases of dementia due to the higher proportion than the rest.
RailTrail.Hint: The RailTrail data set is from the mosaicData package.
Precipitation, Cloud Cover, Spring and Fall
Fall
Hint: Use message, echo and results in the chunk options. Refer to the RMarkdown Reference Guide.