Which of the following code create n samples of size “size” with probability prob from the binomial?
(a) z <- rinom(n,size,prob)
(b) z <- rbinom(n,size,prob)
(c) z <- binom(n,size,prob)
(d) z >- nom(n,size,prob)
I had been asked this question in exam.
The query is from Commands topic in division Commands, Packages, Visualizing Data and Linear Regression of R Programming