Loblolly is a built-in R dataset that that records the growth of Loblolly pine trees. We are interested in the height column of Loblolly. The values in the height column can be converted into a vector of name x by the assignment: x <- Loblolly$height We can see the values in x by typing x and Return or Enter. Remember x <- Loblolly$height 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 height column of Loblolly to the vector named x. (Easy-see above) b. Calculate the interquartile range of x using the R, IQR() function. c. Calculate the sum of the squares of the values in x. [ d. Calculate the sample mean of x. e. Calculate the sample variance of x. [ f. Calculate the sample standard deviation of x. f. Using R, calculate a trimmed mean of x. 84 h.Enter your R script in the box below.

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
Loblolly is a built-in R dataset that that records the growth of Loblolly pine trees. We are interested in the height column of Loblolly.
The values in the height column can be converted into a vector of name x by the assignment:
x <- Loblolly$height
We can see the values in x by typing x and Return or Enter. Remember x <- Loblolly$height
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 height column of Loblolly to the vector named x. (Easy-see above)
b. Calculate the interquartile range of x using the R, IQR() function.
c. Calculate the sum of the squares of the values in x.
d. Calculate the sample mean of x.
e. Calculate the sample variance of x.
f. Calculate the sample standard deviation of x.
f. Using R, calculate a
trimmed mean of x. [
h.Enter your R script in the box below.
Transcribed Image Text:Loblolly is a built-in R dataset that that records the growth of Loblolly pine trees. We are interested in the height column of Loblolly. The values in the height column can be converted into a vector of name x by the assignment: x <- Loblolly$height We can see the values in x by typing x and Return or Enter. Remember x <- Loblolly$height 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 height column of Loblolly to the vector named x. (Easy-see above) b. Calculate the interquartile range of x using the R, IQR() function. c. Calculate the sum of the squares of the values in x. d. Calculate the sample mean of x. e. Calculate the sample variance of x. f. Calculate the sample standard deviation of x. f. Using R, calculate a trimmed mean of x. [ h.Enter your R script in the box below.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
A First Course in Probability (10th Edition)
A First Course in Probability (10th Edition)
Probability
ISBN:
9780134753119
Author:
Sheldon Ross
Publisher:
PEARSON
A First Course in Probability
A First Course in Probability
Probability
ISBN:
9780321794772
Author:
Sheldon Ross
Publisher:
PEARSON