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 alzheimer is the non smoking group. The no smoking category is the largest category under alheimer, and is much bigger than the other groups under alheimer.
The other dementias and greater than 20 is the one group that has more cses expected than given inddpendence. The number of cigarettes per day was greater than 20, and was quite a big part of the other dementias.
The mosiac chart shows no linear correlation between alzheimer and number of cigarettes per day. Only one category showed some kind of linear correlation.
RailTrail.Hint: The RailTrail data set is from the mosaicData package.
Hightemp, avgtemp, lowtemp, and summer have a positive correlation with volume. There are other options that correlate with volume, but they are less than 0 and correlate negatively.
Summer seems to be the most popular season for trail users. When we look at the correlation with the volume and other seasons and find that summer has the highest positive ocrrelation with volume.
Hint: Use message, echo and results in the chunk options. Refer to the RMarkdown Reference Guide.