Академический Документы
Профессиональный Документы
Культура Документы
**QUESTIONSSTART**
1. Which one of the following boxplot() commands has the correct syntax?
A. boxplot(bf, horiz = FALSE)
B. boxplot(count ~ site, data = bfs, horiz = TRUE)
C. boxplot(site ~ count, data = bfs, horizontal = TRUE)
D. boxplot(count ~ site, data = bfs, horizontal =
TRUE, names = c(G, H, A))
E. boxplot(count ~ site, data = bfs, horizontal =
TRUE, labels = c(G, H, A))
**NEXTQUESTION**
2. Which of the following method make vector of repeated values ?
a) rep()
b) data()
c) view()
d) All of the mentioned
**NEXTQUESTION**
**NEXTQUESTION**
**NEXTQUESTION**
**NEXTQUESTION**
**NEXTQUESTION**
**NEXTQUESTION**
**NEXTQUESTION**
10. Which of the following is used to view dataset in a spreadsheet-type format ?
a) Disp()
b) View()
c) Seq()
d) All of the mentioned
**NEXTQUESTION**
**NEXTQUESTION**
**NEXTQUESTION**
**NEXTQUESTION**
15. Which of the following groups values of a variable into larger bins ?
a) cut
b) col.max(x)
c) stem
d) which.max(x)
**NEXTQUESTION**
**NEXTQUESTION**
19. Which of the following compute analysis of variance table for fitted model ?
a) ecdf()
b) cum()
c) anova()
d) All of the mentioned
**NEXTQUESTION**
**NEXTQUESTION**
22. ______ lets you perform SQL queries on your R data frames.
a) sqldf
b) plyr
c) forecast
d) All of the mentioned
**NEXTQUESTION**
23. ______ splits a data frame and results an array (hence the da). Hopefully youre
getting the idea here.
a) apply
b) daply
c) stats
**NEXTQUESTION**
24. ________ makes it incredibly easy to fit time series models like ARIMA, ARMA,
AR, Exponential Smoothing, etc.
a) sqldf
b) plyr
c) forecast
d) All of the mentioned
**NEXTQUESTION**
**NEXTQUESTION**
**NEXTQUESTION**
27. Which of the following convert a matrix of phi coefficients to polychoric correlations
?
a) poly()
b) qline()
c) phi2poly
d) All of the mentioned
**NEXTQUESTION**
**NEXTQUESTION**
29. Which of the following commands would be best to add a best-fit line to a basic
scatter plot?
A. lines()
B. lty
C. lm()
D. abline()
**NEXTQUESTION**
30. Which of the following statements is not true with regard to the pie() command
and pie charts?
A. You can arrange the pie slices clockwise or counter clockwise.
B. You can plot rows or columns of data frames or matrix objects.
C. You can use custom labels for the slices.
D. You can select the starting position for the first slice.
**NEXTQUESTION**
31. Which one of the following instructions is not valid for use with the barplot()
command?
A. horizontal = TRUE
B. beside = TRUE
C. legend = TRUE
D. horiz = TRUE
**NEXTQUESTION**
32. Which one of the following commands is the correct formula syntax for the
cor.test() command?
A. cor.test(speed, dist, data = cars)
B. cor.test(speed ~ dist, data = cars)
C. cor.test(dist ~ speed, data = cars)
D. cor.test(~ speed + dist, data = cars)
E. cor.test(dist, speed, data = cars)
**NEXTQUESTION**
33. Which one of the following commands carries out a post-hoc test after an aov()?
A. post.hoc(my.aov)
B. ptukey(my.aov)
C. tukey.test(my.aov)
D. TukeyHSD(my.aov)
E. tukeyHSD(my.aov)
**NEXTQUESTION**
34. Which of the following is not required to produce an interaction plot?
A. x.factor
B. response
C. interaction
D. trace.factor
**ENDOFQUESTIONS**
**FOURTHUNIT**
**QUESTIONSSTART**
35. Which of the following commands is not used to get or set names for rows/columns
of objects?
A. col.names
B. names
C. row.names
D. rownames
E. colnames
**NEXTQUESTION**
36. Which one of the following commands would not make a vector of names suitable
for a factor variable?
A. rep(2, c(A, B))
B. gl(2, 1, 4, names = c(A, B))
C. c(A, B, A, B)
D. gl(2, 1, 4, labels = c(A, B))
**NEXTQUESTION**
37. All of the following commands would add the newvec vector to the two-column
data frame, myvec: TRUE or FALSE?
A. myvec$newvec = newvec
B. myvec[ ,3] = newvec
C. myvec = data.frame(myvec, newvec)
D. myvec = cbind(myvec, newvec)
E. myvec[ ,newvec] = newvec
F. myvec[3] = newvec
G. myvec[newvec] = newvec
**NEXTQUESTION**
38. Which of the following aggregate() commands does not use correct syntax?
A. aggregate(dat[1:3], by = c(dat$fac,
dat$site), FUN = sum)
B. aggregate(dat[1:3], by = list(dat$fac,
dat$site), FUN = sum)
C. aggregate(. ~ site, data = dat, FUN = sum)
D. aggregate(resp ~ site, data = dat, FUN =
sum)
**NEXTQUESTION**
39. Which one of the following items is not part of a linear model result?
A. coefficients
B. r.squared
C. residuals
D. fitted.values
**NEXTQUESTION**
40. Which one of the following linear model formula would conduct an analysis of
covariance?
A. y ~ x
B. y ~ A + x
C. y ~ 0 + x
D. y ~ 1 + x
**NEXTQUESTION**
41. Which one of the following commands can be used to create confidence intervals
that you can use to add to a plot?
A. confint()
B. fitted()
C. resid()
D. predict()
**NEXTQUESTION**
42. Which of the following count the number of good cases when doing pairwise
analysis ?
a) count.pairwise
b) count() +
c) anova.para()
d) All of the mentioned
**NEXTQUESTION**
43. Which of the following gives the summary of values likes mean etc ?
a) mean
b) sd
c) describe
d) All of the mentioned
**NEXTQUESTION**
**NEXTQUESTION**
**NEXTQUESTION**
**NEXTQUESTION**
47. The oneway (or onefactor between subjects) ANOVA tests the hypothesis that, in
the population:
A. All the means have different values
B. All the group means have the same value
C. The control group mean is different from each of the active treatment
means
D. The group means do not all have the same value
**NEXTQUESTION**
**NEXTQUESTION**
49. To decide whether an obtained value of F is significant, we must locate the value in
the appropriate sampling distribution, which is specified by the degrees of freedom.
The critical region
**NEXTQUESTION**
50. In the Fratio for the onefactor, between subjects ANOVA, the error term is
a. The numerator of the F ratio
b. The mean of the cell variances
c. The mean of the cell standard deviations
d. The variance of the cell means
**NEXTQUESTION**
51. Three drugs were tested by selecting four groups of volunteers (10 people in each
group) and comparing the skilled performance of three groups, each on a dosage of
one of the drugs, with that of a control (placebo) group, who had ingested a neutral
subst
a. The value of F is 6.0
b. The value of F is less than 1
c. There is insufficient information in the description above and in the table to
determine the value of F
d. The value of F is 0.5
**NEXTQUESTION**
52. It can be seen from the following ANOVA summary table that:
a. The groups were of equal size
b. There were 199 participants
c. The experimental design was of the one factor within subjects type
d. Three groups of people participated in the experiment
**NEXTQUESTION**
53. The ____ command is used to create and display simple text messages to screen
A. Cat()
B. Iat()
C. pat()
D. Dat()
**ENDOFQUESTIONS**
**FIFTHUNIT**
**QUESTIONSSTART**
54. Which one of the commands does not create a color palette?
A. cmyk.colors()
B. heat.colors()
C. topo.colors()
D. gray()
**NEXTQUESTION**
55. Which one of the following instructions results in axis text always perpendicular to
the axis?
A. las = 0
B. las = 1
C. las = 2
D. las = 3
E. las = 4
**NEXTQUESTION**
56. Which one of the following commands places bold text in the left margin of a plot?
A. mtext(??, side = 2, font = 4)
B. mtext(??, side = 2, font = 2)
C. mtext(??, side = 4, font = 2)
D. mtext(??, side = 4, font = 4)
**NEXTQUESTION**
**NEXTQUESTION**
58. If you create a custom function, which one of the following command pairs would
you use to save the function to disk and load it later?
A. dump() and load()
B. save() and source()
C. write() and read()
D. dump() and source()
E. write() and load()
**NEXTQUESTION**
60. If you give a choice and require a logical OR, which one of the following commands
would be most suitable?
A. if(x = Y | x = y)
B. if(x == Y || x == y)
C. if(x == Y OR x == y)
D. if(x = Y || x = y)
E. if(x = Y OR x = y)
**ENDOFQUESTIONS**