RailTrail.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”.Nonsmokers, those who do not smoke. O cigarettes a day. ## Q2 Describe one group that has more cases than expected given independence (by chance). Discuss it by number of cigarettes per day.
Other dimentias who smoke 20 cigarettes per day.
No it does not. There is some relationships but they are small (blue square)
RailTrail.Hint: The RailTrail data set is from the mosaicData package.
Spring(-.04), Fall (-.25),Cloudcover(-.37),Precipitation(-.23)
Fall is the least popular season for trail users (-.25) ## Q7 The correlation coefficient between hightemp and cloudcover is quite small. Would you be sure that the two variables are not related at all? Hint: One word answer (e.g., yes or no) is NOT enough. Explain why. The correlation coefficient is -0.1.The color is white which means no correltaion where they meet. So it is very small ## Q7.a Continued from Q7. Create scatter plot. After examing the scatter plot, would you conclude that the two variables are not related at all? Hint: Discuss your reason by explaining your scatter plot.
Hint: Use message, echo and results in the chunk options. Refer to the RMarkdown Reference Guide.