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 group that does not smoke. They smoke 0 cigarettes a day.
The group that has more cases is the dementias group from looking at the data. They smoke 20 or more cigarettes a day.
It does not look like smoking determines alzheimers because looking at the chart, people that do not smoke have the most people getting alzheimers and the people that smoke any cigarettes from any amount look like they do not get alzhimers in as big of a margin as the none smoking.
RailTrail.Hint: The RailTrail data set is from the mosaicData package.
The variables that have a positive correlation with the number of trail users is the hightemp which has the highest correlation, also, avgtemp, lowtemp, and summer have positive correlations with volume.
The season that is the most popular for trail users is the summer from looking at the chart.
Hint: Use message, echo and results in the chunk options. Refer to the RMarkdown Reference Guide.