ProjectTwo.Rmd
Due Oct. 18 at Midnight.
First, obtain a copy of the RMarkdown for this exam
For this first part of the exam, you can either use surveys_complete.csv
or your own data. If you are using your own data, you must have data in which you think you have a numerical predictor variable and a numerical response variable. If you are using surveys_complete
, you can use weight and hindfoot_length for this.
# read in data here
# Answer which column is predictor and which is response
# Plot here
#Answer here
# Code here
# Answer here
# Code here
#Code here
#Answer here
surveys_complete
: Is there interspecific variation in the linear model? Hint: look at our prior work with facet plots. (15 pts)If you are not using surveys_complete
: Do you think there are groupings within your data that may have a separate linear model? Try grouping the data by that variable and redoing the lm. (15 pts)
#code here
In this portion, you are free to use your own data if you have a categorical predictor variable and a response variable. Otherwise, you may use the columns sex and weight in surveys_complete
# plot code here
# ANOVA code here
#Code here
#Answer here
#Plot code here
#Commands here
#Commands here
My expectation is that you’ll do this with your own data. If any part of this doesn’t make sense with your data, please get in touch ASAP so we can work it out.
In addition, please take one of the statistical tests we tried, and write it as a function in the R/
folder of your last name directory. Write appropriate documentation with it. Add, commit, and push it to Github. I’ll view it there.