Question

3. Use R Studio: Include R Code A commuter records 20 commute times to gage her...

3. Use R Studio: Include R Code A commuter records 20 commute times to gage her median commute time. The data has a sample median of 24 and is summarized in this stem-and-leaf diagram: stem(commutes)

2 | 111233444444

2 | 55569

3 | 113

If the data is appropriate for t.test, use that to compute a 90% confidence interval for the median. Otherwise use wilcox.test (perhaps after a transform) to compute a confidence interval for the median.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

> x=c(21,21,21,22,23,23,24,24,24,24,24,24,25,25,25,26,29,31,31,33)
> #Checking for normality of the data
> qqnorm(x)
> qqline(x)
> Normal Q-Q Plot -2 -1 0 2 Theoretical Quantiles C C 08 97 77 Sample Quantiles
> #Since the data is not normal, we cannot perform the t test
>
> #Introducing some randomness in the data
> y=jitter(x)
>
> #Performing the Wilcoxon test
> wilcox.test(y)

Wilcoxon signed rank test

data: y
V = 210, p-value = 1.907e-06
alternative hypothesis: true location is not equal to 0

Add a comment
Know the answer?
Add Answer to:
3. Use R Studio: Include R Code A commuter records 20 commute times to gage her...
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Write code in R or Rstudio (Programming) You track your commute times for three weeks (15...

    Write code in R or Rstudio (Programming) You track your commute times for three weeks (15 days), recording the following times in minutes: 17, 16, 20, 24, 22, 15, 21, 25, 17, 90, 16, 17, 22, 20, 20. Enter the data into a 3-by-5 matrix, where rows are weeks and columns are weekdays. Please answer the following questions and provide the necessary code. (a) Name each column with the weekday abbreviations, i.e., Mon, Tue, Wed, Thu, and Fri (b) Find...

  • i need help on question 3 to 22 please. Midterm ex review. MATH 101 Use the...

    i need help on question 3 to 22 please. Midterm ex review. MATH 101 Use the following information to answer the next four exercises. The midterm grades on a chemistry exam, graded on a scale of 0 to 100, were: 62, 64, 65, 65, 68, 70, 72, 72, 74, 75, 75, 75, 76,78, 78, 81, 82, 83, 84, 85, 87, 88, 92, 95, 98, 98, 100, 100,740 1. Do you see any outliers in this data? If so, how would...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT