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...
icon
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
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
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer