Note: Respond To All Questions That Are Highlighted From Part A To E Write four
ID: 3353455 • Letter: N
Question
Note: Respond To All Questions That Are Highlighted From Part A To E
Write four short paragraphs to summary instructions A To E Below (Check your grammar carefully!!) List all of the R commands that you used for instructions A To E Below A. B. In order to compute the median, replace mean with median an median(FakeDataSAge). Double check that you obtain 56. a. put b. In order to compute the quartiles, R uses a more general function for computing any percentile, using the quantile function. You may either specify the percent cutoff you want, e.g. .25 for the first quartile, or specify none and obtain the five number summary. Try entering quantile(FakeDataSAge, o.25). You should obtain 49. What is the command to obtain the 3d quartile? c. Computing the IQR is as easy as can be. The IQR of the age should be 14 when you compute it in R. d. The maximum and minimum values can be computed using the max and min functions respectively. Implement each of these on Age C1) 56 an(FakeDataSAge) guants1ecFakeoataSAge. .25) quantilerakeDataSAge) t1) 14 winFakeDatasAge 13 41 Compute the mean, median, standard deviation and IQR for the height variable in FakeData e.Explanation / Answer
In the question, data is not given, so we make as a data which is correctly obtaining median and 1st quartile value
The data is
age=c(64, 46, 67, 55, 59, 47, 49, 61, 59) # Fakedata
a.
median(age)
[1] 59
b.
quantile(age,0.25)
25%
49
quantile(age)
0% 25% 50% 75% 100%
46 49 59 61 67
c.
IQR(age)
[1] 12
d.
min(age)
[1] 46
max(age)
[1] 67
e.
height=c(140,140,160,139,153,153,146,150,148,150,152,146,154,150,
160,148,150,148,140,148,153,138,152,150,148,138,152,140,146,148) ## in cm
summary(height)
Min. 1st Qu. Median Mean 3rd Qu. Max.
138 146 148 148 152 160
IQR(height)
[1] 6
sd(height)
[1] 5.918993
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.