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 the non smokers. They have zero cigarettes per day.
The group that has more cases than expected given indepence is people with dementia who smoke twenty or more cigarettes per day.
Based on the data smoking does not seem to matter in determining alzheimers. As people who smoke get alzheimers at nearly the same rate as those who dont. Also the pearson residiuals number is 0 meaning they get it at the rate expected.
RailTrail.Hint: The RailTrail data set is from the mosaicData package.
## Q5 What variables have positve correlation with the number of trail users (volume)?
Variables that have positive relationship with the number of trail users are: hightemp, avgtemp, lowtemp, and summer.
The season that seems to be the most popular for trail users is summer because it has the highest positive correlation out of all the seasons.
Hint: Use message, echo and results in the chunk options. Refer to the RMarkdown Reference Guide.