Elance Exams Answers PDF file

-- PDF FILE --
Download PDF file of elance Zoho Creator Exam Answers
elance-zoho-creator-exam.pdf

Suppose you need to randomly assign 100 study subjects into one of 5 groups such that there are exactly 20 subjects in each group. Which of the following R functions creates a variable Y that randomly distributes the 100 study subjects into 5 groups of equal size?

ytemp <- rnorm(100, 0, 1); Y <- cut(ytemp, breaks=c(-10, -2, -1, 1, 2, 10))
Y <- rbinom(100, 5, 0.5)
Y <- sample(rep(c(1:5), each=20), size=100)
Y <- sample(c(1, 2, 3, 4, 5), 100, replace = TRUE)
Top
  • Follows us our servcies
  • Facebook icon
  • Linkedin icon
  • twitter icon
  • rss icon
  • social icon