Question

Below is a sample of the times (in minutes) 12 people waited in line to buy...

Below is a sample of the times (in minutes) 12 people waited in line to buy coffee:

5 5 10 8 7 1 6 2 8 7 12 13

Please use R to read in data as a vector.

h-i) Report the summary from the R output.

h-ii) Using R, draw the boxplot of this data (you may use boxplot( ) command). Include the R code and the resulting boxplot in your answer.

Homework Answers

Answer #1

Please use R to read in data as a vector.

data is read into a vector x

> x=c(5,5,10,8,7,1,6,2,8,7,12,13)
> x
[1] 5 5 10 8 7 1 6 2 8 7 12 13

h-i) Report the summary from the R output.
> summary(x)
Min. 1st Qu. Median Mean 3rd Qu. Max.
1.0 5.0 7.0 7.0 8.5 13.0

h-ii) Using R, draw the boxplot of this data (you may use boxplot( ) command). Include the R code and the resulting boxplot in your answer.

>boxplot(x)

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Using R and the data in the table below, perform the regression of D on C...
Using R and the data in the table below, perform the regression of D on C (i.e., report the regression equation). Hint: The code to enter the vectors C and D into R is: C <- c(3, 6, 8, 9, 1, 3) D <- c(2, 7, 5, 4, 0, 4) C D 3 2 6 7 8 5 9 4 1 0 3 4 You must figure out how to obtain the regression equation from R. Enter the code below...
Curve-Fit Function USING MATLAB Using the top-down design approach, develop a MATLAB function A8P2RAlastname.m that reads...
Curve-Fit Function USING MATLAB Using the top-down design approach, develop a MATLAB function A8P2RAlastname.m that reads data from a file and performs regression analysis using polyfit and polyval. The function shall have the following features: The input arguments shall include the file name (string), a vector of integers for the degrees of polynomial fits to be determined, and an optional plot type specifier (‘m’ for multiple plots, ‘s’ for a single plot - default). The data files will be text...
Movies 10a and b - Kruskal Wallis Using either R and/or SPSS, calculate a Kruskal Wallis...
Movies 10a and b - Kruskal Wallis Using either R and/or SPSS, calculate a Kruskal Wallis H test report in the correct format AND a complete write up (in a paragraph) following the example in the movie. (1 point).Be sure to cut and paste your output into this document. When using R this should include your code. IF using SPSS screenshot the output dialogs after double clicking on the summary (I have not been able to cut and paste those...
A random sample of 12 college students were surveyed on their social activities. Students were asked...
A random sample of 12 college students were surveyed on their social activities. Students were asked to state how many times during the previous year they had gone to the movies or sporting events. Student 1 2 3 4 5 6 7 8 9 10 11 12 Movies 12 2 13 17 14 9 24 6 26 22 10 16 Sports 7 4 13 4 9 15 18 4 11 9 5 2 Difference (movies – sports) Once you have...
Use SPSS to determine if amount of sleep is related to reaction time. 1. Before computing...
Use SPSS to determine if amount of sleep is related to reaction time. 1. Before computing the correlation, state the null hypothesis and alternative hypothesis in words (not formulas). 2. Based on the hypotheses you stated, explain whether the researcher should conduct a one-tailed or two-tailed test. 3. Identify the correlation coefficient (r) for this data set using SPSS and report it in your answer document. 4. State the degrees of freedom and explain how you calculated it by hand....
#Linked Lists and Classes #C++ Hi, please use singly linked list method to do this question....
#Linked Lists and Classes #C++ Hi, please use singly linked list method to do this question. Thank you! Here’s the contents of a file called example.cpp: // example.cpp #include "LinkedList.h" #include <iostream> #include <string> using namespace std; int main() { cout << "Please enter some words (ctrl-d to stop):\n"; LinkedList lst; int count = 0; string s; while (cin >> s) { count++; lst.add(remove_non_letters(s)); } // while cout << "\n" << count << " total words read in\n"; cout <<...
A researcher is interested in brain training services like Luminosity affects the speed with which people...
A researcher is interested in brain training services like Luminosity affects the speed with which people can solve puzzles. To test this, she has research participants complete brain training exercises daily, and measures the speed with which they solve a puzzle at four different times: before practice, after 1 week of training, after 2 weeks of training, and after 3 weeks of training. Eight subjects participate in the experiment; each subject receives every level of the IV. Their data (time...
2) Airline accidents: According to the U.S. National Transportation Safety Board, the number of airline accidents...
2) Airline accidents: According to the U.S. National Transportation Safety Board, the number of airline accidents by year from 1983 to 2006 were 23, 16, 21, 24, 34, 30, 28, 24, 26, 18, 23, 23, 36, 37, 49, 50, 51, 56, 46, 41, 54, 30, 40, and 31. a. For the sample data, compute the mean and its standard error (from the standard deviation), and the median. b. Using R, compute bootstrap estimates of the mean, median and 25% trimmed...
Java question, Please answer everything. Thank you Answer the following questions as briefly (but completely) as...
Java question, Please answer everything. Thank you Answer the following questions as briefly (but completely) as possible: What is a checked exception, and what is an unchecked exception? What is NullPointerException? Which of the following statements (if any) will throw an exception? If no exception is thrown, what is the output? 1: System.out.println( 1 / 0 ); 2: System.out.println( 1.0 / 0 ); Point out the problem in the following code. Does the code throw any exceptions? 1: long value...
Write a 4-6 sentence summary explaining how you can use STL templates to create real world...
Write a 4-6 sentence summary explaining how you can use STL templates to create real world applications. In your summary, provide an example of a software project that you can create using STL templates and provide a brief explanation of the STL templates you will use to create this project. After that you will implement the software project you described . Your application must be a unique project and must incorporate the use of an STL container and/or iterator and...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT