www.webassign.net/web/Student/Assignment-Responses/lastidep=1 344989FQ2 Question
ID: 3329940 • Letter: W
Question
www.webassign.net/web/Student/Assignment-Responses/lastidep=1 344989FQ2 Question Details Notes Ask Your Teach 2. DNase is a built-in R dataset. The DNase data frame was obtained during development of an ELISA assay for the recombinant protein DNase in rat serum. We are interested in the density column in the DNase dataset. We can access this column directly by calling it DNase$density. (In R use 7DNase for info on this dataset.) The values of DNase$density are: 0.017 0.018 0.121 0.124 0.206 0.215 0.377 0.374 0.614 0.609 1.019 1.001 1.334 1.364 1.730 1.710 0.045 0.050 0.137 0.123 0.225 0.207 0.401 0.383 0.672 0.681 1.116 1.078 1.554 1.526 1.932 1.914 0.070 0.068 0.173 0.165 0.277 0.248 0.434 0.426 0.703 0.689 1.067 1.077 1.629 1.479 2.003 1.884 0.011 0.016 0.118 0.108 0.200 0.206 0.364 0.360 0.620 0.640 0.979 0.973 1.424 1.399 1.740 1.732 0.035 0.035 0.132 0.135 0.224 0.220 0.385 0.390 0.658 0.647 1.060 1.031 1.425 1.409 1.750 1.738 0.086 0.103 0.191 0.189 0.272 0.277 0.440 0.426 0.686 0.676 1.062 1.072 1.424 1.459 1.768 1.806 0.094 0.092 0.182 0.182 0.282 0.273 0.444 0.439 0.686 0.668 1.052 1.035 1.409 1.392 1.759 1.739 0.054 0.054 0.152 0.148 0.226 0.222 0.392 0.383 0.658 0.644 1.043 1.002 1.466 1.381 1.743 1.724 0.032 0.043 0.142 0.155 0.239 0.242 0.420 0.395 0.624 0.705 1.046 1.026 1.398 1.405 1.693 1.729 0.052 0.094 0.164 0.166 0.259 0.256 0.439 0.439 0.690 0.701 1.042 1.075 1.340 1.406 1.699 1.708 0.047 0.057 0.159 0.155 0.246 0.252 0.427 0.411 8 2 2 1 0.704 0.684 0.994 0.980 1.421 1.385 1.715 1.721 You should get these values from R rather than manually copying. a.Give the R code to assign the data of DNasesdensity to the vector x. b. How many elements are in x? C. d. How many outliers does an R boxplot of x show? e. Calculate the sample mean of x.0 719 f. Calculate the sample standard deviation of x. 0 594 g. What proportion of the x values are within 1 sample standard deviations from the sample mean h. Calculate the Interquartile Range of x using R i. What number do you get if you add up the values in x? .Calculate the maximum value of x Add any comments below.Explanation / Answer
SolutionA:
library(nlme)
require(nlme)
attach(data=DNase)
X<- c(DNase$density)
SolutionB:
176
str(X)
Solutionc:
median(x)
0.5265
Solutiond:
no outliers
Code:
outlier_values <- boxplot.stats(x)$out # outlier values.
boxplot(x, main="DNase$Density ", boxwex=0.1)
mtext(paste("Outliers: ", paste(outlier_values, collapse=", ")), cex=0.6)
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.