In R please provide the code and steps for the following Install the dplyr package and load the library. Load the starwars data set Make a new dataframe that only contains the height and species columns from the original data set Remove all of the rows from the new dataframe that have missing values. How many rows of data were lost when the n/a values were removed? It is recommended that you use the na.omit() function for this ex: myData <- mydata %>% na.omit() Create two new dataframes that contain the heights of humans and aliens (not humans and not droids) respectively. Read the help documentation for the par() function – the first example listed is especially relevant. Create 4 images in the same window Top Left : histogram of human heights Top Right: histogram of alien heights Bottom Left: qq plot of human heights Bottom Right: qq plot of alien heights Describe the shape of the distributions and what your observations are about the heights of these two groups based on these four graphs. For the humans and the aliens individually, compute the median, mean, and standard deviation of the heights. Conduct a Wilcoxon signed rank test to test the hypothesis that the median heights of humans and aliens in Star Wars are not the same. Use a significance level of 0.05 for your test. In your report, clearly state the test hypotheses, the result, and the conclusion in the context of the problem. Conduct a hypothesis test to determine if the standard deviation of the heights of the alien population is greater than the standard deviation of the heights of the human population in Star Wars. Use a significance level of 0.05 for your test. In your report, clearly state the test hypotheses, the result, and the conclusion in the context of the problem.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
icon
Concept explainers
Question

In R please provide the code and steps for the following

  1. Install the dplyr package and load the library.
  2. Load the starwars data set

  3. Make a new dataframe that only contains the height and species columns from the original data set

  4. Remove all of the rows from the new dataframe that have missing values. How many rows of data were lost when the n/a values were removed? It is recommended that you use the na.omit() function for this ex: myData <- mydata %>% na.omit()

  5. Create two new dataframes that contain the heights of humans and aliens (not humans and not droids) respectively.

  6. Read the help documentation for the par() function – the first example listed is especially relevant.

  7. Create 4 images in the same window

    1. Top Left : histogram of human heights

    2. Top Right: histogram of alien heights

    3. Bottom Left: qq plot of human heights

    4. Bottom Right: qq plot of alien heights

    Describe the shape of the distributions and what your observations are about the heights of these two groups based on these four graphs.

  8. For the humans and the aliens individually, compute the median, mean, and standard deviation of the heights.

  9. Conduct a Wilcoxon signed rank test to test the hypothesis that the median heights of humans and aliens in Star Wars are not the same. Use a significance level of 0.05 for your test. In your report, clearly state the test hypotheses, the result, and the conclusion in the context of the problem.

  10. Conduct a hypothesis test to determine if the standard deviation of the heights of the alien population is greater than the standard deviation of the heights of the human population in Star Wars. Use a significance level of 0.05 for your test. In your report, clearly state the test hypotheses, the result, and the conclusion in the context of the problem.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Query Syntax
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education