1. Homepage
  2. Programming
  3. SS2864 Statistical Programing Assignment 2

SS2864 Statistical Programing Assignment 2

Engage in a Conversation
RTidyverseData CleaningData AnalysisSS2864Statistical ProgramingCanadaUWO

SS2864 Assignment 2 CourseNana.COM

=============================================================== CourseNana.COM

Note 1: All assignments are to be completed using R markdown and submit online. Please submit both the rmd file and the output. Make sure that your R markdown file can be compiled, otherwise 50\% of the marks are deducted. CourseNana.COM

Note 2: Practicing is the best way to learn. So please complete the assignment questions independently. CourseNana.COM

Note 3: Please submit before the deadline. Late submission will not be accepted. We do not mean to be strict; the fact is that we do not have enough manpower to dealing with issues related to late submissions. CourseNana.COM

Note 4: The assignment is due on Wednesday, Feb 15, 2023. Please submit your .rmd and output (html or pdf or word) to OWL. CourseNana.COM

=============================================================== CourseNana.COM

Question 1. - This question deals with cleaning up datasets. Load the dataset file "auto-mpg-messy.csv" into R. Answer the following questions. (20 point) CourseNana.COM

  1. Have a first view of the dataset using functions str, summary, head, tail, View. CourseNana.COM

  2. Change the variables that should be numeric (but showed up as character) to numeric. CourseNana.COM

  3. There will be NAs in the dataframe you obtained in step 2. Print out all observations with NA and then delete them from the dataset. CourseNana.COM

  4. Some variables have outliers (due to typo or coding conventions). Identify all observations with outliers and then remove them. CourseNana.COM

Question 2 Now you should have a clean dataset to work with from Q1. Do the following (25 point) CourseNana.COM

  1. Apply the summary function to the clean data you obtaind for Question 1 and state the difference between this and the summary result in question 1. CourseNana.COM

  2. Extract the observations for 'honda' and "ford" cars are in the dataset. Count how many of the two types of cars are there in the dataset. CourseNana.COM

  3. Find the observations with top 5 (highest) and bottom 5 (lowest) mpg. CourseNana.COM

  4. Find the mean mpg of all autos and calculate the proportion of observations that have mpg higher than the mean. CourseNana.COM

  5. change the variable cylinder to factor. Then find the mean mpg of autos with 4, 6 and 8 cylinders. CourseNana.COM

... CourseNana.COM

Question 3 Repeat Question 2 using functions in Tidyverse functions. (25 point) CourseNana.COM

Question 4 Applied the functions filter, arrange, mutate, select, group_by summarize and on the dataset you used in Q6 of assignment 1 and observe the results. Note: if your dataset have less than 5 variables, please select another one with more variables for this question. (20 points) CourseNana.COM

Question 5. SS2864 has classes on MWF. Suppose that the term starts from Jan 9,2023 and ends at Apr 10, 2023, inclusive. Using date/time related function in R to calculate how many classes are in the term. (10 points) CourseNana.COM

Get in Touch with Our Experts

WeChat (微信) WeChat (微信)
Whatsapp WhatsApp
R代写,Tidyverse代写,Data Cleaning代写,Data Analysis代写,SS2864代写,Statistical Programing代写,Canada代写,UWO代写,R代编,Tidyverse代编,Data Cleaning代编,Data Analysis代编,SS2864代编,Statistical Programing代编,Canada代编,UWO代编,R代考,Tidyverse代考,Data Cleaning代考,Data Analysis代考,SS2864代考,Statistical Programing代考,Canada代考,UWO代考,Rhelp,Tidyversehelp,Data Cleaninghelp,Data Analysishelp,SS2864help,Statistical Programinghelp,Canadahelp,UWOhelp,R作业代写,Tidyverse作业代写,Data Cleaning作业代写,Data Analysis作业代写,SS2864作业代写,Statistical Programing作业代写,Canada作业代写,UWO作业代写,R编程代写,Tidyverse编程代写,Data Cleaning编程代写,Data Analysis编程代写,SS2864编程代写,Statistical Programing编程代写,Canada编程代写,UWO编程代写,Rprogramming help,Tidyverseprogramming help,Data Cleaningprogramming help,Data Analysisprogramming help,SS2864programming help,Statistical Programingprogramming help,Canadaprogramming help,UWOprogramming help,Rassignment help,Tidyverseassignment help,Data Cleaningassignment help,Data Analysisassignment help,SS2864assignment help,Statistical Programingassignment help,Canadaassignment help,UWOassignment help,Rsolution,Tidyversesolution,Data Cleaningsolution,Data Analysissolution,SS2864solution,Statistical Programingsolution,Canadasolution,UWOsolution,