From the IMS Textbook, do the following exercises (you do not need to read anything from the textbook to answer these):
Question 1: For this question, we will be using the iris
dataset, giving the measurements, in centimeters, of the variables for sepal and petal length and width
To load this data into R, simply copy and paste the following into your Rmd file in an R code chunk
data(iris)
Use this data to answer the following questions:
iris
dataset? In one sentence, briefly describe what constitutes an observation in this data.Sepal.Width
and Sepal.Length
. Do these two variables appear to be associated? If so, comment on the strength of this association.Species
. Has anything changed in the association between Sepal.Width
and Sepal.Length
? Comment on the strength, form, and direction of any associations you see.