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

Algebra & Trigonometry with Analytic Geometry
13th Edition
ISBN:9781133382119
Author:Swokowski
Publisher:Swokowski
Chapter8: Applications Of Trigonometry
Section8.4: The Dot Product
Problem 46E
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
Similar questions
Recommended textbooks for you
Algebra & Trigonometry with Analytic Geometry
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:
9781133382119
Author:
Swokowski
Publisher:
Cengage
Linear Algebra: A Modern Introduction
Linear Algebra: A Modern Introduction
Algebra
ISBN:
9781285463247
Author:
David Poole
Publisher:
Cengage Learning
Elementary Linear Algebra (MindTap Course List)
Elementary Linear Algebra (MindTap Course List)
Algebra
ISBN:
9781305658004
Author:
Ron Larson
Publisher:
Cengage Learning