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 had no cigarettes per day.
The group that had more cases than expected was the group that had more than 20 cigarettes per day and had other dementias.
It doesn’t matter when it comes to other dementias because the largest group of people to get other dementias is did not smoke.
RailTrail.Hint: The RailTrail data set is from the mosaicData package.
Spring, fall, cloudcover, and precipitation all have a negative correlation with the number of trail users.
Fall is the least popular season.
Hint: Use message, echo and results in the chunk options. Refer to the RMarkdown Reference Guide.