Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Use the function read.csv and name the data frame apdata. Copy and paste the following in your R script: apdata < - read.csv (
Use the function read.csv and name the data frame apdata. Copy and paste the following in your R script: apdata read.csvAPpredictioncsv stringsAsFactors TRUE apdata$ID asfactorapdata$ID Note: You should not hardcode any answers in this assignment. For example, suppose Question asked to find the average of and and store it in Q You should have Q meanc for your answer, not Q In other words, you should be using functions like mean to find answers, rather than storing the values themselves. The problem with hardcoding is that if the data changes, your answer will not change with it and therefore it will be wrong Using a function like mean on the other hand, will recalculate the mean regardless if the data changes. We want code that is robust to these types of issues. If your code is found to have hardcoded answers, you may receive a on the assignment. Q: Find the mean weighted GPA of the students. Assign it to Q Q: Find the median weighted GPA of the students. Assign it to Q Q: Find the minimum weighted GPA of the students. Assign it to Q Q: Find the maximum weighted GPA of the students. Assign it to Q Q: Find the range of the weighted GPA of the students. Assign it to Q Q: Find the variance of the weighted GPA of the students. Assign it to Q Q: Find the standard deviation of the weighted GPA of the students. Assign it to Q Q: Store the summary of only the weighted GPA data and store it in QDo not store the summary of all variables! Q: Store the weighted GPA of the student whose data is stored in the th row of the data set in Q Q: Convert the weighted GPA for the student in the th row into a zscore standardized score When calculating this zscore, use the vectors above which contain the statistics needed to calculate a zscore. Assign it to Q Q: Find the thth and th percentiles aka quartiles of the weighted GPAs in this data set. Assign them to Q For assistance, see https:wwwgeeksforgeeks.orghowtocalculatequartilesinr or this R documentation. R script only
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