a.Give the R code to assign the values in in the len column of ToothGrowth to the vector named x. (Easy-see above) 4.2, 11.5, 7.3, 5.8, 6.4, 10.0
a.Give the R code to assign the values in in the len column of ToothGrowth to the vector named x. (Easy-see above) 4.2, 11.5, 7.3, 5.8, 6.4, 10.0
A First Course in Probability (10th Edition)
10th Edition
ISBN:9780134753119
Author:Sheldon Ross
Publisher:Sheldon Ross
Chapter1: Combinatorial Analysis
Section: Chapter Questions
Problem 1.1P: a. How many different 7-place license plates are possible if the first 2 places are for letters and...
Related questions
Question
100%
Hi, I am not sure what I am doing wrong and need some assistance for the first question.
![ToothGrowth is a built-in R dataset that examins the effect of Vitamin C on tooth growth in guinea pigs. We are interested in the len column of ToothGrowth. The values in the len column can be converted into a vector of name x by the
assignment:
x <- ToothGrowth$len
After this assignment, we can see the first six values in x by typing head(x) and Return or Enter
a.Give the R code to assign the values in in the len column of ToothGrowth to the vector named x. (Easy-see above) 4.2, 11.5, 7.3, 5.8, 6.4, 10.0
b. Calculate the sample median of x. 19.25
c. Calculate the sample mean of x. 18.81333
d. Calculate the sample variance of x. 58.51202
e. Calculate the sample standard deviation of x. 7.649315
3
trimmed mean of x. 18.82037
60
f. Using R, calculate a
g. Calculate the sum of the square roots of the values in x. 254.0301](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F86bfc21f-7304-4d6a-8ae3-de059a5180e7%2F0bdb78da-49b9-4e33-9df4-7ac2bcb2bfcc%2Fqv66di_processed.png&w=3840&q=75)
Transcribed Image Text:ToothGrowth is a built-in R dataset that examins the effect of Vitamin C on tooth growth in guinea pigs. We are interested in the len column of ToothGrowth. The values in the len column can be converted into a vector of name x by the
assignment:
x <- ToothGrowth$len
After this assignment, we can see the first six values in x by typing head(x) and Return or Enter
a.Give the R code to assign the values in in the len column of ToothGrowth to the vector named x. (Easy-see above) 4.2, 11.5, 7.3, 5.8, 6.4, 10.0
b. Calculate the sample median of x. 19.25
c. Calculate the sample mean of x. 18.81333
d. Calculate the sample variance of x. 58.51202
e. Calculate the sample standard deviation of x. 7.649315
3
trimmed mean of x. 18.82037
60
f. Using R, calculate a
g. Calculate the sum of the square roots of the values in x. 254.0301
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Recommended textbooks for you
![A First Course in Probability (10th Edition)](https://www.bartleby.com/isbn_cover_images/9780134753119/9780134753119_smallCoverImage.gif)
A First Course in Probability (10th Edition)
Probability
ISBN:
9780134753119
Author:
Sheldon Ross
Publisher:
PEARSON
![A First Course in Probability](https://www.bartleby.com/isbn_cover_images/9780321794772/9780321794772_smallCoverImage.gif)
![A First Course in Probability (10th Edition)](https://www.bartleby.com/isbn_cover_images/9780134753119/9780134753119_smallCoverImage.gif)
A First Course in Probability (10th Edition)
Probability
ISBN:
9780134753119
Author:
Sheldon Ross
Publisher:
PEARSON
![A First Course in Probability](https://www.bartleby.com/isbn_cover_images/9780321794772/9780321794772_smallCoverImage.gif)