Use the given data to predict the quality of wine. There are three tasks associated with this analysis:
ucidata
package. (See below.)# load packages
library("tidyverse")
library("caret")
# install.packages("devtools")
# devtools::install_github("coatless/ucidata")
# view data documentation in R
?ucidata::wine
# "load" data
wine = as_tibble(ucidata::wine)
For this analysis, do the following:
Submit a .zip
file to Compass that contains:
.Rmd
file that is your IMRAD.
data/
which contains heart-disease.csv
..html
file that is the result of knitting your .Rmd
file.The zip file should contain no other files. (Whether or not these two files are within another folder does not matter.)
Submit your .zip
file to the correct assignment on Compass2g. You are granted an unlimited number of submissions. Only your final submission will be graded.
We assume that your R
, R
packages, and RStudio are all up-to-date. (Or at least as recent as the versions found on RStudio Cloud.) You’ve been warned.
Your code will be graded based on its style. We don’t expect you to have a mature coding style, so we have a list of rules which must be followed.
The following will be explicitly checked for in your code:
==
, +
, -
, <-
, etc.) should always be surrounded by spaces.
:
, ::
, $
, [
, [[
, ]
, ]]
^
: Use x ^ 2
instead of x^2
.<-
or =
, not both.
<-
operator, you will need to replace the =
operator in the given code.T
or F
.;
.attach()
function.The following are suggested, but will not be directly assessed:
.
, or capital letters in variable and function names.for (i in 1:10)
for(i in 1:10)
mean(x)
mean (x)
predict()
function.)
Much of this is derived from the tidyverse
style guide. If you follow the tidyverse
guide, be aware of our use of ^
and =
.
There will be a PL quiz associated with this analysis to check some of the “objective” numeric results of your analysis.
After submission of the analysis, an example “solution” will be released. In addition, a set of reflection questions will be released. By comparing your submitted analysis to the “solution” together with the reflection questions, you will write a short self-assessment of you analysis.
This analysis is worth a total of 10 points.
.Rmd
and .html
(4 points)
.Rmd
(0 - 1 - 2).html
(0 - 1 - 2)
Failure to submit the correct files will results in 0 points for the IMRAD.
Quiz grading will be similar to regular quizzes.
Grading of the self reflection will largely be based on completion. A template will be provided after submission of the analysis.
The late policy will apply to each individual task. See above for due dates.
Late submissions for both will be accepted up to 48 hours after the initial deadline.
If you submit multiple attempts, the final attempt will be graded. If your first submission is on time, but your final submission is late, you will incur the late submission penalty.