Inclass exercises, Day 9
Follow this link for day 9 materials and notes
Solutions for these exercises are available here
ANOVA
Using the built-in dataset PlantGrowth
, run an ANOVA to determine if plant weight differs across treatments.
Pearson’s Correlation
Using the dataset wine.csv, run a correlation test to determine the strength and magnitude of the relationship between flavanoid and total phenol content across all wine cultivars.
Spearman’s Correlation
Using the dplyr
dataset diamonds
(you can access it like any built-in dataset if dplyr
is loaded), run a non-parametric correlation test between diamond carat and price, specifically for diamonds with quality “Good”.
Regression
Using the dataset wine.csv, construct a linear model that can predict the amount of non-flavanoid phenols (NonflavPhenols) from the amount of Flavanoids across all wine cultivars.