Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. Use the table below to do the following: Name Homework Midterm Final Matt 97 95 92 Don 93 92 96 Charla 95 90 88
1. Use the table below to do the following: Name Homework Midterm Final Matt 97 95 92 Don 93 92 96 Charla 95 90 88 Jeremy 88 83 75 Kelly 86 79 84 Abby 85 82 86 Gaston 72 63 72 (a) Create a data frame in R consisting of the above data set, you may name the set anything you like. Create vectors for each variable and combine them in a data frame. (b) Use R to create a new variable Total which is the weighted average of the homework, midterm and final (the homework counts for 30% of the total score, the midterm 25% and the final 45%). Add the variable to the data frame created in part (a) using the cbind() command. (c) Use R to compute the mean and standard deviation of the variables Homework, Midterm, Final and Total. (d) Use R to make a scatterplot of the midterm versus final scores, label the x and y axes appropriately. Change the main title to read "Midterm vs. Final Exam". Also compute the correlation between the two variables. What do the values in your correlation matrix and your scatterplot tell you about the relationship between the midterm and final scores? (e) Create side-by side boxplots for the homework, midterm, and final exam scores. To make these side by side, use the boxplot() command and separate the variables by commas in the parentheses. Also, make each box a different color. You need to do something special with the 'col=' command by creating a vector of color names to accomplish this. You can always use Google to see how to do this! What observations can you make about the boxplots
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started